JSSTag.marginTop (Property)

The margin at the top of an object.


CSS level - 1
JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyJSSTag.marginTop
NmyJSSTag.marginTop = aWidth
CSS syntax:margin-top: aWidth
Argument list:aWidthA CSS length value

The JSSTag.marginTop property corresponds to the margin-top CSS property.

Refer to the JSSTag.marginBottom topic for details.

This value is not inherited from its parent container element.


See also:Measurement units