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

Chapter 12. Box Properties > padding-left Property

12.28. padding-left Property

The padding-left property is used to add space between one element and another onscreen. It can be used to add a specific measurement or percentage value between elements. It shares the same values as its sibling properties padding-bottom, padding-right and padding-top.

padding-left is designed to space out objects on a Web page — such as between an image and text or between adjacent blocks of text. In Listing 12.22 padding-left is used to add space between the text and the left of the border. You can see the effects of this code in the Opera browser in Figure 12-29.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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