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

Aspect ratios in CSS

From: Zoe Blade <zoe@bytenoise.co.uk>
Date: Sun, 9 Jan 2005 12:35:23 +0000 (GMT)
To: www-style@w3.org
Message-ID: <20050109123048.J428@localhost.my.domain>

Hi.

I hope this is the right place to ask:

Reading up on the auto value (
http://www.w3.org/TR/2002/WD-css3-box-20021024/#auto ), it shows a way to
specify either a width or height for an element, and keep the element's
original aspect ratio.

Is there anything like this for elements which don't have an intrinsic
aspect ratio? For example, say you have a division, and you're using a
liquid layout so you want its width to be a certain percentage and you
want to give it a certain aspect ratio, so that the renderer could work
out the correct height for it. I can't find any mention of a ratio CSS
property. Is there such a thing, or would such a thing be a good idea?

Thank you,
Zoe.
Received on Sunday, 9 January 2005 13:36:55 GMT

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