.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 numbers 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.
Get the outerHeight of a paragraph.