Sent by Gunlaug_Sørtun on 9 July 2004 18:06
>I take it nobody likes the idea of automatically using an alternate CSS
>file based
>on screen size.
I don't mind alternating styles based on screen size - it can solve many problems. The limitation is
that not much can be done along those lines in most browsers without some javascript - as Nick has
pointed to.
Opera 7.50 is of course a different matter...
The following will let you style and restyle based on screen size - in internal or external CSS.
---
@media all and (min-width: ????px){
(some style)
(some more style...)
}
---
I use this as a "be even nicer to Opera" rule in my style sheets (setting min-width to zero in order
to catch all sizes), and I don't think browsers in general can read what's inside that argument.
Something for the future that Opera can act upon now. You might use several of these arguments with
different "min-width" to test out your ideas...
I'm not sure I understand what you want to achieve. Screens will continue to come in all sizes. They
generally grow larger on stationary PC's, 1280 and 1600 resolutions are much the norm where I live,
so I take that into account. Other devices are arriving all the time.
I'm testing from 640 to 1600, and stretch to 3800 just to look for weaknesses (using 3 screens with
Matrox).
Next step is to go below 640, but my pages are generally too large to work on mobiles, so I'm not in
a hurry.
Georg
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/