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

Re: CSS: %% length unit. Proposal.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 7 May 2004 09:21:28 -0700
Message-ID: <003601c4344f$59db1fd0$0301a8c0@ATHLON>
To: "Anne van Kesteren (fora)" <fora@annevankesteren.nl>, "Max Romantschuk" <max@provico.fi>
Cc: <www-style@w3.org>

Hi, Anne,

Let's say we have layout like this:
|<--25%%-->|<--fixed:100px-->|<------75%%------>|

What formulas do you propose F1 and F2 to achieve the same?
|<---F1-->|<--fixed:100px-->|<-------F2-------->|

E.g.  it could be:
F1 = -100px + 50%  or  F1 = 50% - 100px

I mean   A + B != B + A in such formulas.
Don't expect different UA to render this in the same way - too many choices.

Andrew Fedoniouk.
http://terrainformatica.com


>
> > I like the idea, but would it be clearer to add syntactical support for
> > simple expressions instead?
>
> I believe a proposal like that has been made and the CSS WG is
> discussing it.
>
>   width:calc(50%-100px);
Received on Friday, 7 May 2004 12:22:41 GMT

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