• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Client-Side Browser Syntax > document.tags.margins()

document.tags.margins()

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.margins(top,right,bottom,left)
document.tags.tagName.margins(top-bottom,right-left)
document.tags.tagName.margins(all)

Description

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint