For years every serious web page was secretly a grid of tables inside tables, held in place with invisible images. It worked, until it ran into its limits.
October 2026
Content precedes design. Design in the absence of content is not design, it’s decoration.
Jeffrey Zeldman, 2008
I built a lot of them. Dreamweaver was my tool for years: a design came out of Photoshop, was cut into slices, and every slice went into a cell of its own, with transparent one-pixel images to hold the gaps open. On screen it looked exactly like the design. Underneath it was a puzzle that only the person who built it could take apart.
Then CSS arrived for real, and it changed everything. This note is about how we got into tables, why we had to get out, and the afternoon a single web page showed that we could.
How a table became a page
Tables were meant for tables: rows and columns of figures. Browsers added them in the mid-1990s, and HTML 3.2 made them official in January 1997. But early HTML had no way to place anything on a page. Text ran from the top left to the bottom right, as wide as the window. Designers who came from print, used to columns, margins and grids, saw in the table the only grid on offer, and took it.
In 1996 David Siegel published Creating Killer Web Sites, the book that taught a generation the tricks: tables nested inside tables for columns, and the spacer GIF, a transparent image of a single pixel, stretched to any size to push things into place. Siegel later said he regretted much of it. At the end of 1997 Macromedia released Dreamweaver, and the tricks became point-and-click. You drew a layout; the program wrote the tables.
Why it went wrong so quickly
The problems showed up as soon as a site had to live longer than its launch. A page made of nested tables was heavy, and browsers of the time took long to work out the grid before they could show anything. Changing the design meant rebuilding the grid on every page, because the layout was not stored anywhere else: it was the page. A new column in the template could mean a week of work.
And the content was trapped inside it. Screen readers read the cells in the order of the code, so a menu, a spacer and half a sentence could follow each other in nonsense. Search engines had to dig the text out of the grid. When screens started to vary in size, a table could not reflow: it stayed exactly as wide as it was built. The same glue between content and layout is what page builders sell again today, as I described in The page only one program can read.
CSS changed it all
The way out existed long before anyone could use it. Cascading Style Sheets became a W3C Recommendation on 17 December 1996: the content in HTML, the look in a separate file. But browsers supported CSS so badly and so differently that for years designers kept their tables, because tables at least behaved the same everywhere.
The person who did most to change that was Jeffrey Zeldman. In 1998 he co-founded the Web Standards Project, a group of designers and developers who put pressure on the browser makers to support the standards they had signed up to, and in the same year he co-launched A List Apart, the magazine where the case for standards was argued, article by article, for years. For many of us he was the reason to keep trying CSS while it still hurt.
The turn came in a few months. On 11 October 2002 Wired News relaunched without layout tables, built in clean HTML with CSS for every bit of layout, under its design director Doug Bowman. It was one of the first large daily publishers to do it, and it showed the rest of us that the browsers were finally good enough. In 2003 Zeldman published Designing with Web Standards, the book that turned years of argument into a method, and made it something you could hand to a client.
And in May 2003 Dave Shea opened the CSS Zen Garden. It was one page of HTML that never changed, and a growing collection of style sheets, sent in by designers from everywhere, each of which turned that same page into something completely different. Click to the next one and the same words stood in a new world. It was stunning. No argument about separating content from design ever convinced as many people as that one page did.
What is left
Tables went back to doing what they were made for. A timetable, a price list, a comparison: data in rows and columns, with headings that a screen reader can announce. Layout moved to CSS for good, and CSS itself grew the grids that designers had once forced out of tables. The next step in the same direction is told in HTML5: the end of the workarounds.
The lesson outlived the tables. A workaround that becomes the normal way of working is very hard to unlearn, because every tool, template and habit is built on it. We spent years getting out of tables. Whatever the next convenient shortcut is, it is worth asking early where the content will be when the shortcut goes.
For anyone building pages now, this is what remains of the lesson.
Tables and layout today
- Use tables for data only. If the content would make sense in a spreadsheet, it is a table; if not, it is layout, and layout belongs in CSS.
- Give a data table its headings. Header cells and a caption let a screen reader say which row and column a figure belongs to.
- Let it fit a phone. A wide table scrolls sideways inside its own frame, so the rest of the page stays where it is.
- Read the page without its styles. With the CSS switched off, the content should still come in a sensible order.
- Ask where the content lives. Before any tool takes over the layout, check that the words stay readable without it.
Read the originals
- Jeffrey Zeldman, Content precedes design (2008). The source of the pull quote, first a tweet.
- Jeffrey Zeldman, Designing with Web Standards (New Riders, 2003). The book that made standards a way of working.
- Dave Shea, CSS Zen Garden (2003). Still online: one page, hundreds of designs.
- Douglas Bowman, Wired.com: Ten years later (2012). The designer of the 2002 relaunch on dropping tables for layout.
- Jay Hoffmann, Tables for Layout? Absurd. (The History of the Web). How tables became the grid of the early web, and how it ended.
- W3C, Cascading Style Sheets, level 1 (1996). The way out, years before browsers could follow it.
- Wikipedia, Spacer GIF. The transparent pixel that held the early web together.