.outerHeight( [includeMargin ] )Returns: Number
Description: Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without "px") representation of the value or null if called on an empty set of elements.
version added: 1.2.6.outerHeight( [includeMargin ] )
includeMarginType: BooleanA Boolean indicating whether to include the element's margin in the calculation.
The top and bottom padding and border are always included in the
.outerHeight() calculation; if the
includeMargin argument is set to
true, the margin (top and bottom) is also included.
This method is not applicable to
document objects; for these, use
The number returned by dimensions-related APIs, including
.outerHeight(), may be fractional in some cases. Code should not assume it is an integer. Also, dimensions may be incorrect when the page is zoomed by the user; browsers do not expose an API to detect this condition.
The value reported by
.outerHeight()is not guaranteed to be accurate when the element's parent is hidden. To get an accurate value, you should show the parent first, before using
Get the outerHeight of a paragraph.