document.classes.marginBottom

JavaScript 1.2+ Nav4+ Syntax

document.classes.className.tagName.marginBottom

Description

The marginBottom property specifies the distance between the bottom border of an element and the top border of another element. Dot notation is used to associate this property with the class called className. The definition can also specify a tag or the word all for tagName.

Example

Listing 7.79 uses marginBottom property to set the distance between adjacent elements.

Listing 7.79 Set the Bottom Margin with the marginBottom Property
 <html> <script> <!-- Hide //Create a style sheet class that defines bottom margin document.classes.FORMAT.all.borderWidths(10); document.classes.FORMAT.all.marginBottom = 40; //Hide ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.