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

Chapter 12. Box Properties

Chapter 12. Box Properties

Topics in This Chapter

The box family of CSS properties is the largest CSS family, containing almost 50 separate properties. While this sounds impressive, the majority of these properties are only a slight variation upon a common formatting theme. Most of these properties can be collected together into one of three sub-groups of similar properties (they share the same name prefix): the border, margin, and padding groups. The border sub-group controls the type, color and placement of borders around elements on a Web page. The margin sub-group handles where margins should appear between elements on a Web page, and the padding sub-group takes care of spacing between a Web element and a border. There are four additional properties (clear, float, height and width) that do not fit neatly into one of these categories, but these “miscellaneous” properties all have a role to play in placing and sizing elements on a Web page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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