Chapter 21. Positioning Three Columns with a Header and a Footer

In this lesson, you will learn how to position a three-column liquid layout with a header and a footer. This method involves placing background images inside two containers to give the illusion of column colors, and then floating all three columns.

Setting Up the HTML Code

Although tables can be used to create HTML page layouts, they are not ideal. Pages laid out with tables are often much larger in size due to the additional markup that is required. They are also less flexible, so it is harder to move sections of the layout without restructuring the markup completely.

CSS-based layouts, on the other hand, are generally smaller in file size and much more flexible.

The HTML code for this ...

Get Sams Teach Yourself CSS in 10 Minutes now with O’Reilly online learning.

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