Features

In the early 2000s you built a page like a table — fixed widths, floats, and a prayer it held together.

Features — 01

CSS learned to bend

Filed UnderCSS, Responsive Design
Read Time~3 minutes
PublishedNovember 5, 2026 at 8:30 PM
Close-up of colorful CSS code displayed on a computer monitor
Photo: Negative Space / Pexels

          I started designing websites in 1999, and back then you built a page like a table. Literally — tables. You laid the whole page out in table cells because there was nothing else that would hold still. Then came floats, which were never meant for layout at all, and a whole bag of tricks to make them behave: the clearfix hack, spacer GIFs, fixed widths with a prayer. And when two rules fought over the same element, you settled it the ugly way, with !important, and moved on.
          It worked, after a fashion. But every layout was a negotiation with the browser, and the browser usually won.
          The first real change was the breakpoint. Media queries let one page change shape at set widths — below 900 pixels, do this; above it, do that. My own site still runs on that idea: the rules under 900 pixels are what a phone sees. The phone stopped being an afterthought you squeezed the desktop into. The page started to notice what it was being read on.

“ The layout bends to fit the screen instead of breaking.”

          Then layout stopped being a trick. Flexbox became the standard around 2016, and it did one thing beautifully: rows and columns that actually line up, in one direction, without floats. Grid followed in 2017 and did the other thing: real two-dimensional layout, rows and columns together, declared up front. For the first time you could say what you wanted — "this goes here, that goes there" — and the browser did it, instead of you coaxing it with hacks. The float era ended not with a fight but with a shrug. Nobody missed it.
          Custom properties came along around the same time, and they're quieter but just as big. Variables in CSS. One token for the accent color, and changing it changes the whole site at once. Quibrio's sand is a token. When I changed the accent from burnt orange to sand, I changed it in one place. In the old days that would have been a hundred little edits and a missed one somewhere.
          And the new wave keeps coming. Container queries, stable since 2023, let a component respond to its own box instead of the whole viewport — a card can rearrange itself because it's in a narrow column, not because the screen is narrow. Cascade layers, from 2022, end the specificity wars properly: you declare the order your rules apply in, instead of shouting !important at each other. :has(), also 2023, lets a parent react to what's inside it. Subgrid lines nested grids up with their parents so everything aligns. Each one of these removes a hack I used to need.
          What does any of that mean for a client? It means the site you pay for isn't held together with tricks. The layout bends to fit the screen instead of breaking. The rules say what they mean, so the next person who touches the site — or me, six months later — can read them and know what's going on. And when you want the accent changed, or the spacing tightened, it's a decision, not an excavation.

          Twenty-five years ago I was building pages out of tables and hoping they'd hold. Now I tell the browser what I want, and it listens. That's how far CSS has come.

← Previous
All Notes

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections