W3C home > Mailing lists > Public > www-style@w3.org > September 2006

position / size arithmetic?

From: Jeremy Nicoll <jrnicoll@hotmail.com>
Date: Fri, 01 Sep 2006 17:15:39 -0600
Message-ID: <44F8BF1B.4090404@hotmail.com>
To: www-style@w3.org

3, but is there a way to do the following? Say I have a picture that is 
50px high, and I want it exactly centered horizontally.  I would like to 
be able to do something like this: 50% - 50px.  This is not the only  
scenario in  which  I wish I could mix and match different types of 
measurements to come to a specific location or dimension.  Especially 
with the standard box model, it would be great to specify a width like: 
100% - 10px, where the border of the box is 5px.  This way one could 
ensure that the box (including borders) would be 100% of the containing 

Thank you,
Jeremy Nicoll
Received on Saturday, 2 September 2006 17:06:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:25 UTC