Hi,
I am having difficulty trying to create a page with 3 columns in CSS.
This is how the page currently looks, click here.
As you can see it doesn't seem to wrap properly
I have set up the page with an outer and inner div, so I can get a border.
And the inner div contains a header, top navigation, left navigation, right bar, content and footer.
I would like the header, top navigation and footer to fill the width of the inner div.
And the content to fit between the left and right divs.
This is how my css looks:
My html:
Could anyone help.
Cheers
I am having difficulty trying to create a page with 3 columns in CSS.
This is how the page currently looks, click here.
As you can see it doesn't seem to wrap properly

I have set up the page with an outer and inner div, so I can get a border.
And the inner div contains a header, top navigation, left navigation, right bar, content and footer.
I would like the header, top navigation and footer to fill the width of the inner div.
And the content to fit between the left and right divs.
This is how my css looks:
Code:
#outer {
background-color: #CCCCCC;
padding: 20px;
}
#inner {
border: 1px solid black;
}
#header {
height: 70px;
background-color: #FFFFFF;
font-family: "Lucida Sans";
width: 100%;
padding-left: 10px;
}
#topnav {
height: 25px;
background-color: #000000;
font-family: Pristina;
font-size: 20px;
color: #FFFFFF;
width: 100%;
padding-left: 10px;
}
#leftnav {
width: 175px;
height: 300px;
float: left;
background-color: #575757;
color: #FFFFFF;
}
#content {
margin-left: 176px;
background-color: #FFFFFF;
}
#rightbar {
width: 175px;
height: 300px;
float: right;
background-color: #000000;
color: #FFFFFF;
}
#footer {
height: 35px;
width: 100%;
background-color: #FFFFFF;
text-align: center;
}
My html:
Code:
<body>
<div id="outer">
<div id="inner">
<div id="header">
<h1>My Test Site</h1>
</div>
<div id="topnav">
Link 1 | Link 2 | Link 3
</div>
<div id="leftnav">
<br />
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</div>
<div id="rightbar">
<p>Extra bar on the right.</p>
</div>
<div id="content">
<p>The content goes in here.</p>
</div>
<div id="footer">
© My Test Site 2007
</div>
</div>
</div>
</body>
Could anyone help.
Cheers