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

Chapter 12. Box Properties > padding-top Property

12.30. padding-top Property

Like its sibling properties padding-left, padding-right and padding-bottom, the padding-top property is used to add space between one element and another. Like its sibling properties padding-top can take either a specific measurement value or percentage value.

You can see the effects of padding-top in the Listing 12.24, whose results are displayed within the Opera 6.0 browser in Figure 12-31. In this case, the top paragraph is separated from the top of the browser window, and the second paragraph uses the property to add space between the text and the top of the border that surrounds it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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