I am trying to create my own scroll bars. I have tried most of the jquery scrollbar plugins and none of them seem to work for me, so I decided to create my own. I have an ov
You can get it with .outerHeight().
Sometimes, it will return 0. For the best results, you can call it in your div's ready event.
To be safe, you should not set the height of the div to x. You can keep its height auto to get content populated properly with the correct height.
$('#x').ready( function(){
// alerts the height in pixels
alert($('#x').outerHeight());
})
You can find a detailed post here.