Chapter 7. Flexing Your Layout Muscles

Although we’ve been encouraged for many years to use CSS to control the layout of our pages, the CSS 2.1 mechanisms that can be used for layout are quite slim. Absolute positioning is not used often by most developers since it’s too rigid; floats have been used extensively, but were never really meant for full-page columnar layouts, and are limited in what effects they can produce. CSS3 introduces a number of new layout mechanisms that will make the building of multi-column layouts much easier and also allow for creating complex layout behaviors that simply can’t be accomplished with the properties and techniques of CSS 2.1. While these techniques are still somewhat experimental, this chapter will get ...

Get Stunning CSS3: A Project-Based Guide to the Latest in CSS 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.