Structuring Your Pages

The whole point of using CSS is to separate the formatting and styling rules from the content of your page. This makes your pages easier to maintain and gives them the flexibility to work well in different browsers, platforms, and devices, or even in print. Just as it does with styling text, CSS provides great variety in how you present the overall layout of your pages. You apply CSS to the content containers that represent a page’s primary structural elements, which you learned about in Chapter 3 Image (on the next page). With CSS, your masthead, main content area, sidebar (or two), page-level footer, and so on come to life visually. ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.