Previous Message
Next Message

Re: [css-d] How to replaces tables/frames with CSS?

Sent by Mark Howells on 30 January 2002 03:03


>> Actually, this will work.  I forgot I had already done this once 
>> before:
>
> <snip>
>>
>>   #left {
>>     position: relative;
>>     float: left;
>>     width: 20%;
>>     background-color: gray; }
>>
>>   #main {
>>     position: relative;
>>     float: right;
>>     width: 80%;
>>     background-color: red; }
> </snip>

Almost perfect in IE5/Mac, except you need to make the total less than 
100% or the 'main' box drops below the 'left' box (though it still 
floats right). Using values of 20% / 79.9% works ok.

Regards
Mark Howells
<http://www.mark.ac/css/>
Previous Message
Next Message

Message thread:

Possibly related: