Styling Tables

For years, tables were the only way to build a grid structure to lay out web pages. Thankfully, tables are no longer necessary—or indeed recommended—for page layout. Normally, they should be used only for the display of data that needs to be presented in a grid format—timetables, price lists, sports results, and so on. That’s the focus of this chapter: styling tables that contain data.

There are no plans to add any new features to tables in CSS3. However, using the CSS3 selectors described in the preceding chapter makes it considerably easier to style tables without the need for extra markup in the HTML.

In this chapter, ...

Get Beginning CSS3 now with O’Reilly online learning.

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