W3C home > Mailing lists > Public > www-style@w3.org > March 2003

Re: Compound relative and pixel sizes for box sizes

From: fantasai <fantasai@escape.com>
Date: Sun, 02 Mar 2003 04:25:13 -0500
Message-ID: <3E61CDF9.7060407@escape.com>
To: www-style@w3.org

David Woolley wrote:
 >Noel Akins wrote:
>>I would like to see the following.
>>
>>Basically put: Height: 100% - Xpx;
> 
> At least one reason one this might not be taken seriously is that the use
> of even pure pixel sizes is discouraged as it makes to many assumptions
> about the technology used to view the material and the viewers eyesight.
> 
> You might be able to simulate it using margins and padding.

<div class="main">
    Content
</div>
<div class="menu">
    Navigation list
</div>
<div class="footer">
    Copyright
</div>

.main {
    width: 100% - 15em;
    min-width: 20em;
    float: left;
}
.menu {
    width: 15em;
    float: right;
}
.footer {
    clear: both;
}

Can you simulate that?
(Without touching the markup, of course.)

P.S. There ought to be better ways to accomplish this,
e.g. by floating to the top right corner rather than
just to the right, but this example assumes the current
model.

~fantasai
Received on Sunday, 2 March 2003 06:24:48 GMT

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