Quote:
|
Originally Posted by MuNKy
Put it in two table columns? Then put the links table in one and the main content in the other.
|
Arrgh! He's trying CSS so why go back to tables?
The most basic 2 column layout is:
CSS:
Code:
#sidebar { background-color: #CC99FF; width: 300px; float: left; }
#main { float: left; padding: 1em; }
.clear { clear: both; }
HTML:
Code:
<body>
<div id="sidebar">
<ul>[*]Item 1[*]Item 2[*]Item 3[*]Item 4[/list] </div>
<div id="main">
The body text</p>
</div>
<div class="clear"></div>
Footer</p>
</body>
I've included a footer for good measure, if you want to get more complex have a look at
http://www.alistapart.com/articles/fauxcolumns/
It's possible to build on these basics to build 3 or 4 column layouts such as
http://www.cut4cloth.co.uk without tables.