Easy Tutorial
❮ Misc Map Sel Attribute Equal Value ❯

jQuery outerHeight() Method

jQuery HTML/CSS Methods

Example

Return the outer height of a <div> element:

$("button").click(function(){
    alert($("div").outerHeight());
});

Definition and Usage

The outerHeight() method returns

As shown in the image below, this method includes padding and border.

Tip: To include margin, use outerHeight(true).


Related Methods:


Syntax

Parameter Description
includeMargin Optional. Boolean value, specifies whether to include margin. false - Default. Does not include margin.<br>true - Includes margin.

More Examples

Include Margin

Display Dimensions Using Related Methods


jQuery HTML/CSS Methods

❮ Misc Map Sel Attribute Equal Value ❯