I neeeeeeed heeeelp!

liunx

Guest
I'm wondering if theres a more efficient way ROUND the <table> tag. Or if I have to use it no matter what..I want to acheive a page with one "box" in the middle of the page, which is divided into three colums.

Can anyone help?here is a starting place

css

#wrapper {
width: 750px;
margin-left: auto;
margin-right: auto;
}

#leftcol {
float: left;
width: 200px;
margin-left: 0px;
border: 1px solid #000000;
}

#rightcol {
float: right;
width: 200px;
margin-right: 0px;
border: 1px solid #000000;
}

#centercol {
width: 300px;
margin-left: auto;
margin-right: auto;
border: 1px solid #000000;
}

html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<title>testing</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"style.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="leftcol">words</div>
<div id="rightcol">words</div>
<div id="centercol">words</div>
</div>
</body>
</html>

But there are many different ways to do this. This is not the only solution.

Position is Everything (<!-- m --><a class="postlink" href="http://www.positioniseverything.net/piefecta-rigid.html">http://www.positioniseverything.net/piefecta-rigid.html</a><!-- m -->) is one place to look



Google (<!-- m --><a class="postlink" href="http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=3+column+layout+css&btnG=Search">http://www.google.com/search?hl=en&lr=& ... tnG=Search</a><!-- m -->) 3 column layout css gets many results.

Hope this helps,
Ian
 
Back
Top