The JSSTag.marginBottom property corresponds to the margin-bottom CSS property.
The content of an object is enclosed in a bounding extent rectangle. Around this is placed a padding space controlled by the padding parameters, which expands the bounding - the border is then placed around this. The border width increases the bounding rectangle around the object still further. Last of all the margin is placed around the outside. This forms a rectangle that is used to locate the object adjacent to any other objects or page margins.
The value of this property can be specified as follows:
A length value in one of several units of measure
A percentage of the width of the object
In addition a keyword can be used:
auto
The auto setting need not be applied to all of the margins, but according to how it is used, some fairly complex margin computation is applied. You should consult one of the standard texts on CSS styles.
The initial value is set to 0 allowing for no margin value at all.
This value is not inherited from its parent container element.
Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0.
See also: | Measurement units |
Prev | Home | Next |
JSSTag.listStyleType | Up | JSSTag.marginLeft |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |