W3C home > Mailing lists > Public > www-style@w3.org > June 2007

Re: Proposal: font-size: auto

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 11 Jun 2007 16:20:06 -0400
Message-ID: <466DAE76.5060009@inkedblade.net>
To: www-style@w3.org

Windy Road wrote:
> 
> The proposal would be for the formula to be very simple.  Generally in 
> the form
> 
>   font-size = (width - padding-left - padding-right) / line-length
> 
> No more and no less complicated than that.

You could get a similar effect using CSS3 units:

   font-size: 2vw;

sets the font size such that 50em == viewport width.

(Probably want to throw a min-font-size in there as well.)

~fantasai
Received on Monday, 11 June 2007 20:20:16 GMT

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