views:

251

answers:

2

I have a contianer div around all the content in the site that dynamically streches, have also got severall other divs that strech (all using the same method as 20 other sites I have).

Not matter what method is use with jqueyr or javascript to get the height of the container, javascript and jquery seem to return a value bigger that height of the container div.

Does anyone know why this would be happening?

Many Thanks

+1  A: 

What do you define as "height"? Are you wanting the borders and padding to be included in the calculation? Just padding? Borders, padding, and margins?

From what it sounds like, my hunch is saying you should be using the innerHeight() function:

$(element).innerHeight();

Documentation: http://docs.jquery.com/CSS/innerHeight

brianreavis