Chapter 2

Building Floating Page Layouts

In This Chapter

arrow Creating a classic two-column page

arrow Creating a page-design diagram

arrow Using temporary background colors

arrow Creating fluid layouts and three-column layouts

arrow Working with and centering fixed-width layouts

The floating layout technique provides a good alternative to tables, frames, and other layout tricks formerly used. You can build many elegant multi-column page layouts with ordinary HTML and CSS styles.

Creating a Basic Two-Column Design

Many pages today use a two-column design with a header and footer. Such a page is quite easy to build with the techniques you read about in this chapter.

Designing the page

It's best to do your basic design work on paper, not on the computer. Here's my original sketch in Figure 2-1.

9781118289389-fg1501.tif

Figure 2-1: This is a very standard two-column style.

Draw the sketch first so you have some idea what you're aiming ...

Get HTML5 and CSS3 All-in-One For Dummies, 3rd 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.