TOC PREV NEXT INDEX

Gecko DOM Reference

offsetHeight

DHTML property that gets the height of an element relative to the layout.

Syntax and values

var intElemOffsetHeight = document.getElementById(id_attribute_value).offsetHeight;

intElemOffsetHeight is a variable storing an integer corresponding to the offsetHeight pixel value of the element.
offsetHeight is a read-only property.

Description

Typically, an element's offsetHeight is a measurement which includes the element borders, the element vertical padding, the element horizontal scrollbar (if present, if rendered) and the element CSS height.

Example

Left Top Right Bottom margin-top margin-bottom border-top border-bottom

padding-top

Gentle, individualistic and very loyal, Birman cats fall between Siamese and Persian in character. If you admire cats that are non aggressive, that enjoy being with humans and tend to be on the quiet side, you may well find that Birman cats are just the felines for you.

All Birmans have colorpointed features, dark coloration of the face, ears, legs and tail.

padding-bottom

Dimensions and borderlines of offsetHeight

Specification

offsetHeight is part of the MSIE's DHTML object model.
offsetHeight is not part of any W3C specification or technical recommendation.

Notes

offsetHeight is a property of the DHTML object model which was first introduced by MSIE. It is sometimes referred as an element physical/graphical dimensions or an element's box height.

References

Report errors or corrections or relevant feedback about this file (bug 196779);
web design questions will be ignored.

TOC PREV NEXT INDEX