Visit Mozilla.org

DOM:element.clientTop

From MDC

This article covers features introduced in Firefox 3


« Gecko DOM Reference

Contents

[edit] Summary

The width of the top border of an element in pixels. It does not include the top margin or padding. clientTop is read-only.

Gecko-based applications support clientTop starting with Gecko 1.9 (Firefox 3, implemented in bug 111207). This property is not supported in Firefox 2 and earlier.

[edit] Syntax

var top = element.clientTop;

[edit] Example

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.

Image:BirmanCat.jpgAll Birmans have colorpointed features, dark coloration of the face, ears, legs and tail.

Cat image and text coming from www.best-cat-art.com

padding-bottom

LeftTopRightBottommargin-topmargin-bottomborder-topborder-bottom

Image:clientTop.png

[edit] Specification

Not part of any W3C specification.

[edit] Notes

clientTop was first introduced in the MS IE DHTML object model.

[edit] References