Tech Tree of the Web

The history of web technology, 1945 to now: 112 ideas and the lines between them. Drag, scroll or press ← → to travel. Open any one for its story.

No. 057 / 112Seen 0 / 112Colophon

The Dynamic Web

Media queries, 2001. Era IV, The Dynamic Web.

Era IV · 1999–2007

← drag · scroll · arrow keys →

2001@media@media screen and (max-width: 600px) { nav { display: none; } main { columns: 1; }}

A stylesheet that asks about the screen first, then applies its rules. Typeset for this timeline: no licence-clean photograph of the thing itself was found.

Key details

When
2001 (first Working Draft, 4 April 2001; Recommendation 19 June 2012)
Who
Håkon Wium Lie (Opera Software) and Tantek Çelik (Microsoft)
Where
W3C CSS Working Group
Answered
It gave browsers a way to adapt styles to different devices, while W3C also worked on CC/PP, a server-centric scheme, from 2000.
Led to
Ethan Marcotte named media queries one of the three ingredients of responsive web design in May 2010.

No. 057 · 2001 · Style · Era IV, The Dynamic Web

Media queries

Let styles apply only when the screen is a certain width or type, the hook responsive layouts hang on.

Facts

  1. Media queries were first sketched in Håkon Wium Lie's initial 1994 CSS proposal, but were left out of CSS1. 1
  2. The first Working Draft, dated 4 April 2001, was edited by Lie of Opera Software and Tantek Çelik of Microsoft. 2
  3. The 2001 draft defined width, height, viewport-aspect-ratio, color, monochrome, resolution and scan, each with min- and max- prefixes. 2
  4. Media Queries Level 3 became a Candidate Recommendation on 27 July 2010 and a W3C Recommendation on 19 June 2012. 1
  5. In a May 2010 A List Apart article, Marcotte defined responsive web design as fluid grids, flexible images and media queries. 3

Sources

  1. Wikipedia, Media queries
  2. W3C, Media Queries Working Draft, April 2001
  3. Wikipedia, Responsive web design
Came from
Led to