Chapter 2. Layout and Positioning

One of the first decisions you will have to make about your site is its layout. How many columns will your site have? Does it have a header and a footer? Consider sketching out a layout on a piece of paper, or even creating a mockup in a graphics program. In this chapter, you’ll see how you can use <div> XHTML tags and CSS rules to define the different areas on the page. In the figure on this page, we’ve shown the divs, labelled with the CSS class name for each.

When you begin working on your site, we suggest that you start by creating the most important part of the site: its content. Write (or collect from coworkers) the site’s copy, and gather the images. Make sure that the images are in the correct format for ...

Get Styling Web Pages with CSS: Visual QuickProject Guide now with O’Reilly online learning.

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