Re: Proposal: font-size: auto

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 UTC