Chapter 8. Layout with CSS3


This chapter covers
  • inline-block and table display values from CSS2
  • calc and box-sizing properties that make CSS2 layout more manageable
  • Media queries to give different CSS to different devices
  • New CSS3 layout modules: templates, grids, and regions


Many people have complained over the years about the poor tools available for layout in CSS. This isn’t an unwarranted criticism, because CSS1 had almost no layout tools. No one anticipated that people would start to do graphic design with web pages until it happened. Several options were added in CSS2, most of which didn’t see broad browser support until the release of IE8 in 2009. Given that it’s taken so long for CSS2 layout to be supported, support for CSS3 ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide now with O’Reilly online learning.

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