document.tags.marginBottom

JavaScript 1.2+ Nav4+ Syntax

document.tags.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 tag called tagName.

Example

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

Listing 7.181 Set the Bottom Margin with the marginBottom Property
 <html> <script> <!-- Hide //Create a style sheet class and id that define bottom margin document.tags.B.borderWidths(10); document.tags.B.marginBottom = 40; //Hide End ---> </script> My margins are set automatically<br> <b>I have a large bottom margin!</b> My margins ...

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.