11. Layout with Styles
In This Chapter
Considerations When Beginning a Layout
Styling HTML5 Elements in Older Browsers
Resetting or Normalizing Default Styles
Setting the Height or Width for an Element
Setting the Margins around an Element
Adding Padding around an Element
Controlling Where Elements Float
Offsetting Elements in the Natural Flow
Positioning Elements Absolutely
Determining How to Treat Overflow
Displaying and Hiding Elements
You can create a wide variety of layouts with CSS. This chapter demonstrates how to build a common layout type: a masthead on top, ...
Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.