Re: Feedback on Media Queries CR

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 UTC