Re: Compound relative and pixel sizes for box sizes

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 UTC