W3C home > Mailing lists > Public > www-style@w3.org > July 2002

Re: Feedback on Media Queries CR

From: Håkon Wium Lie <howcome@opera.com>
Date: Fri, 19 Jul 2002 12:40:25 +0200
Message-ID: <15671.60569.60000.145315@gargle.gargle.HOWL>
To: Lachlan Cannon <luminosity@members.evolt.org>
Cc: www-style@w3.org

Also sprach Lachlan Cannon:

 > > 2) The introduction of mobile web devices with smaller screens poses a
 > > presentation problem. The two-dimensional table-based layout of a
 > > common web page does not scale well onto a smaller screen. Using Media
 > > Queries, the style sheet can use a table-based layout on a large
 > > screen, and a block-based layout on a small screen. The content will
 > > be the same, but a few lines in the style sheet will be different, and
 > > the right one will automatically be selected.
 > 
 > Wouldn't the "handheld" media address this?

Yes, "handheld" is part of the solution. But the "handheld" keyword is
too vague for some and MQ allows authors to define, to some detail,
what kind of handheld deviced the style sheet applies to.

E.g.:

  @media handheld and (min-width: 100px) and (max-width: 200px) {
    ...
  }

 > A better example, I feel, 
 > would be choosing different colourising stylesheets for handhelds 
 > depending on whether they're using a monochrome or colour display.

Yes, that's a good example. I'd write:

  @media handheld {
    /* style sheet for monchrome */
  }
  @media handheld and (color) {
     /* style sheet for color */
  }

-h&kon
              Håkon Wium Lie                          cto °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Friday, 19 July 2002 06:46:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:15 GMT