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

Chapter 8. Space Around Boxes > Using the Margin Property

Using the Margin Property

By using the margin property, you can set all four margins at once. Here’s how it works:

  • If only one value is set on this property, that value applies to all four sides.

  • If two values are set, the first is for top and bottom, the second is for right and left. For example, suppose the value is 3em 2em; in that case, the top and bottom are set to 3em, and the right and left are set to 2em.

  • If three values are set, the first is the top, the second are the right and left, and the third is the bottom margin.

  • If four values are set on this property, the order they are applied is top, right, bottom, and left.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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