CHAPTER 12

image

Cross-Browser Layout Techniques

Most websites use some sort of grid pattern for layout. In the early days of the Web, HTML tables provided the basic grid structure. But using HTML tables for layout is bad for accessibility and search engine optimization. The CSS3 Flexible Box Layout and Grid Layout modules look set to revolutionize the way pages are laid out, but until they’re universally supported, you need techniques that work in all current browsers. I’ll come back to flexible box layouts in Chapter 22.

For complete cross-browser support, you need to use floats and margins to create multiple-column layouts, although you can also ...

Get Beginning CSS3 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.