XML technologies / CSS / Advanced websites with CSS / A simple CSS layout

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

We now have a fair amount of theory behind us. The rest of this book shows how to put CSS into practice when developing your own pages. Step by step, we will learn to build pages with CSS, moving from simple to increasingly complex layouts. We will also combine concepts already described to create beautiful pages.

This chapter begins by developing a simple two-column layout. Along the way, we will learn absolute and relative positioning and how margins, padding and borders work together. Applying many techniques already covered in the book to this layout will show how these tools can be combined.

Although this chapter’s layout is relatively simple, many websites use this structure, and it could easily serve as the starting point for a production page.

  

  

 

 

 

back to top