August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.marginLeft
The marginLeft property specifies the distance between the left border of an element and the right border of another element. Dot notation is used to associate this property with the tag called tagName.
Listing 7.182 uses the marginLeft property to set the distance between adjacent elements. Notice the distance between the border and the right edge of the browser window.
<html> <script> <!-- Hide //Create a style sheet id and tags that defines left margin document.ids.FORMAT.borderWidths(10); document.tags.B.marginLeft = 40; document.tags.I.marginLeft = 0; //Hide ... |
Read now
Unlock full access