August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.margins(top,right,bottom,left) document.tags.tagName.margins(top-bottom,right-left) document.tags.tagName.margins(all)
The margins() method specifies the margin distance between the border of an element and the border of adjacent elements. Dot notation is used to associate the property with the tag called tagName. Setting margin widths is equivalent to setting the marginBottom, marginLeft, marginRight, and marginTop properties. Table 7.22 lists all the arguments associated with the margins() method.
| Item | Description |
|---|---|
| top | Width of the top margin |
| right | Width of the right margin |
| left | Width ... |
Read now
Unlock full access