W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: aspect ratio of box

From: Barry <barry@polisource.com>
Date: Sun, 17 Apr 2005 16:09:30 -0400
Message-ID: <000601c54389$5dc8fa00$2f01a8c0@Seka>
To: "Simon Siemens" <simon.siemens@web.de>, <www-style@w3.org>

Simon Siemens wrote:
> I'm currently exploring, how I can write XHTML documents with a layout 
> that adjusts itself to the client environment like font-size
> ...
> Therefore a ratio property would be helpful to encourage authors to write 
> dynamic layouts:
>
> img {
> width: 30%;
> ratio: 1.3333;
> }

Instead of determining the ratio, I'd like something like:

img {
width: 30%;
OrigWidth: 100px;
OrigHeight: 100px;
}

No math necessary. Just look at the image properties for Orig height and 
width and make CSS preserve the aspect ratio when width is a percentage.



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 266.9.5 - Release Date: 4/7/2005
Received on Sunday, 17 April 2005 20:09:27 GMT

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