document.tags.marginRight

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.marginRight
							
						

Description

The marginRight property specifies the distance between the right border of an element and the left border of another element. Dot notation is used to associate this property with the tag called tagName.

Example

Listing 7.183 uses the marginRight property to set the distance between adjacent elements. Notice the distance between the border and the right edge of the browser window.

Listing 7.183 Set the Right Margin with the marginRight Property
 <html> <script> <!-- Hide //Create a style sheet id and tags that defines right margin document.ids.FORMAT.borderWidths(10); document.tags.B.marginRight = 40; document.tags.I.marginRight ...

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.