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

Chapter 12. THE BOX FAMILY OF PROPERTIES > The MARGIN-RIGHT Property

The MARGIN-RIGHT Property

The MARGIN-RIGHT property is used to add space between one element and another on screen. In terms of functionality, it is equivalent to the padding sub-family of properties, but the padding properties are meant to set the spacing between the border and the content of a box-level element. The margin sub-family of properties instead sets the space between the browser window and the border of the box property. In other words, the margin set of properties sets the spacing value outside box-level elements, while the padding set of properties sets the spacing value inside the boundaries of box-level elements. The two sets of properties produce the same sorts of effects.

MARGIN-RIGHT can be used to add a specific measurement or percentage value between elements. It shares the same values as its sibling properties MARGIN-BOTTOM, MARGIN-LEFT and MARGIN-TOP.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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