August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.ids.idName.marginLeftThe 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 ID called idName.
Listing 7.124 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 that defines the left margin document.ids.margins() document.classes.FORMAT1.all.borderWidths(10); document.ids.margin.marginLeft = 40; document.classes.FORMAT2.all.borderWidths(10); ... |
Read now
Unlock full access