11. Layout with Styles
In This Chapter
Considerations When Beginning a Layout
Styling HTML5 Elements in Older Browsers
Resetting or Normalizing Default Styles
Controlling the Display Type and Visibility of Elements
Setting the Height or Width for an Element
Adding Padding Around an Element
Setting the Margins Around an Element
Controlling Where Elements Float
Positioning Elements Relatively
Positioning Elements Absolutely
Positioning Elements in a Stack
You can create a wide variety of layouts with CSS. This chapter demonstrates how to build a common layout type: a masthead (page header) ...
Get HTML and CSS: Visual QuickStart Guide, Eighth 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.