W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: [CSS3] @resolution at-rule

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Fri, 28 May 2004 09:29:54 +1000
Message-ID: <40B679F2.8090908@iinet.net.au>
To: "Sean M. Hall AKA Dante" <pianoman@reno.com>
Cc: www-style@w3.org



Sean M. Hall AKA Dante wrote:
> I propose a '@resolution' at-rule, for specifying rules applying to screen resolutions. 
> 
> @resolution(800,600) { 
> div#content { 
> width: 459px; 
> } 
> } 
> @resolution(1024,768) { 
> div#wrapper { 
> height: 90%; 
> } 
> } 
> The first agrument is the screen width, the second one the height. 
> 
> If this is a daft idea just tell me. 

This can already be done with the CSS3 media queries.

   http://www.w3.org/TR/css3-mediaqueries/#width

-- 
Lachlan Hunt

lachlan.hunt@lachy.id.au
http://www.lachy.id.au/
Received on Thursday, 27 May 2004 19:34:14 GMT

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