Forum Moderators: not2easy
[edited by: heini at 8:43 am (utc) on June 24, 2003]
[edit reason] removed url / see charter - thanks! [/edit]
I think this effect is done by using tables and % width for the columns.
Try something like creating a 3 columns table with an overall width of 90% width and 100% height (note:some browser doesn't support 100% height). Center it in the middle of the page.
Now for each colomns width it's trial and error try with 60% for the middle column and 20% for each of the side ones and modify it as you need.
Leo
I think it can be done in CSS... I'd agree with Longhaired Genius that the solution might be considered an ugly kludge to some...
Here are two alternative ways:
Shawn
[added: Oops... should have refreshed my browser; seems taht has already been suggested]
trismegisto et al:
That is a good idea, but the problem is the left and right bars in the final are going to be different colors.
I normally would have done this with tables, but just started reading that tables are dead, so I was going to see about doing it with css layout. But suppose I will just do it with tables.
Thanks,
Brian
[webmasterworld.com...]
enclose the left, main and right div in a div which has the same background colour as the left and right divs (assuming the left and right divs are the same colour). The main div is always likely to be the longest.
you can get the left/right columns to be different colors too with a little bit of help from a graphic...
make a graphic that's the same color as, and wide enough to color, the left column (e.g. 200px wide 1px high), then set it as the background-image to the container div set to repeat-y..then set the background color on the same div to the color you want the right column to be...
Suzy
html, body { margin: 0; padding: 0; width: 100%; }
#head { position: absolute; top: 0; width: 100%; height: 70px }
#content { margin-top: 70px; width: 100% }
#rightcol { float: right; width: 100%; background: #fcc; }
#centercol { float: right; width: 50%; background: #9cf; }
#leftcol { float: left; width: 66%; background: #9fc; }
<div id="content" >
<div id="rightcol">
<div id="leftcol">
<div id="centercol">Main Content</div>
Left Column Content
</div>
Right Column Content
</div>
</div>
<div id="head">Header</div>
<div id="foot">Footer</div>
Adapted from a poster whos name I forget.