Hour 14Using Style Sheets for Page Layout

In the preceding two lessons you learned a little bit about how to position HTML content using the default approach to CSS positioning, which is known as relative positioning. In relative positioning, elements on a page are displayed according to the flow of the page, with each element physically appearing after the element preceding it on the page. This is the way elements have been positioned in every HTML document you’ve seen throughout the book thus far. Although relative positioning has its merits, style sheets offer another approach that gives you much more control over how to position elements on a page.

This hour explores HTML positioning as controlled by style sheets. You’ll find out how ...

Get Sams Teach Yourself HTML and CSS in 24 Hours, 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.