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

Chapter 49. Controlling Spacing > Controlling Space around Elements

Controlling Space around Elements

CSS' margin attributes apply to more than just the borders of the page. You can apply margins to any element, thereby adjusting the space around it, as in Figure 49.1.

Listing 49.1. View Source for Figure 49.1.

<p style="margin-bottom: 200px;">This paragraph has a bottom margin of 200 pixels. This is the end of the
paragraph.</p>

<p>This is the beginning of the next paragraph, after a healthy stretch of white space.</p>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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