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

ceil support for calculated units?

From: Netmosfera <netmosfera@gmail.com>
Date: Tue, 11 Jun 2013 07:24:13 +0200
Message-ID: <51B6B47D.1060006@gmail.com>
To: www-style list <www-style@w3.org>
I don't know if it was already suggested, but...

<!-- let's say the window is 801px wide -->
<div style="width:801px">
     <div style="width:50%;background:red;float:left;">a</div>
     <!-- annoying pixel line in the middle -->
     <div style="width:50%;background:red;float:right;">b</div>
</div>

<div style="width:801px">
     <div style="width:50%;background:red;float:left;">a</div>
     <div style="width:ceil(50%);background:red;float:right;">b</div>
</div>

"width:floor(50%)" is the default behavior and it equals to write 
"width:50%" so it isn't really needed

I haven't more use cases, do you have any, especially for newer layout 
modules?

Giorgio
Received on Tuesday, 11 June 2013 05:25:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC