I have put together a simple 2 column layout template and I wanted to offer it to those in the forum (for comment as well as for re-use by others). This layout looks the same on: Safari (Mac), Firefox (Mac/Win), Opera 7.2 (Win), IE 6 (Win), Netscape 7 (Win).
This template delivers content to the left (as a navigation strip currently 200px wide) and content to the right (filling the width of the page dynamically). The left column always stretches to the "page fold" and then goes beyond should the content on the right column exceed the page fold.
I haven't bothered trying to add in any special font styles... as this would detract from the purpose of this exercise... which was to deliver a template for others to build on.
A sample of this layout (including some javascript controls that I put there to help visually show how the layout works) is available at:
Alternatively, the raw template is included below without any content:
Cheers,
Jeff
This template delivers content to the left (as a navigation strip currently 200px wide) and content to the right (filling the width of the page dynamically). The left column always stretches to the "page fold" and then goes beyond should the content on the right column exceed the page fold.
I haven't bothered trying to add in any special font styles... as this would detract from the purpose of this exercise... which was to deliver a template for others to build on.
A sample of this layout (including some javascript controls that I put there to help visually show how the layout works) is available at:
Alternatively, the raw template is included below without any content:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] lang="en" xml:lang="en">
<head>
<meta name="author" content="Jeff Home" />
<meta name="description" content="2 Column CSS Layout" />
<meta name="copyright" content="Copyright © 2005 - Jeff Home" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="en" />
<title>2 Column CSS Layout</title>
<style type="text/css">
body { height:100%;color: #000000;margin:0px;padding:0px;background-color:#6666ff; }
.outerTable { position:relative;width:100%;border:0px;margin:0px;padding:0px;border-collapse:collapse;z-index:1; }
td { vertical-align:top;padding:0px 0px 0px 10px;margin:0px; }
.leftCell { width:190px; }
.leftStrip { position:absolute;top:0px;left:0px;width:200px;height:100%;z-index:1; }
.red { background-color:#ff6666; }
.blue{ background-color:#6666ff; }
</style>
</head>
<body>
<div class="leftStrip red" id="leftstrip"></div>
<table class="outerTable">
<tr><td class="leftCell red">
<!-- place left/navigation content here -->
<!-- place left/navigation content here -->
</td><td class="rightCell blue">
<!-- place right content here -->
<!-- place right content here -->
</td></tr>
</table>
</body>
</html>
Cheers,
Jeff