JavaScript 1.2+ Nav4+ Syntax



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.

Table 7.22. Arguments Associated with the margins() Method
Item Description
top Width of the top margin
right Width of the right margin
left Width ...

Get Pure JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.