Skip to content Skip to sidebar Skip to footer

Get Full Height Of Element?

My blog has a content div with an id of #content. When I select it, e.g. with Firebug it outlines the full height of the div, with all its padding and margins at the top and the bo

Solution 1:

You can use outerWidth and outerHeight functions available after jQuery >= 1.3.

$(elemenet).outerHeight() will return height including height with borders and paddings

use $(element).outerHeight(true) to include margins as well.

Post a Comment for "Get Full Height Of Element?"