I am trying to do a simple 3 colum layout with a header and a footer. The first column is largest, the second is a little smaller and the third is smaller and the nav bar. The back grounds to each column are different so i can see what is happening. I'd be happy to post to a more beginner site but you guys give such great help. I think my gif's maybe are not correct. I made them 2000px squares. The probelm is that there is no back ground color for the columns.
Here is my code:
Please be nice, I am really trying to get away from tables. I have been up for 3 days straight trying to make the layouts work.
Here is my code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Jean-Jacques Gallery</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
font: 90% arial, helvetica, san serif;
background: #387A9B;
color: #333
}
h1
{
background: #D36832;
color: #FFF;
margin: o;
padding: .5 em 3%;
border-bottom: 5px solid #387A9B;
}
h2, h3
{
margin-top: 0;
}
#container
{
background: url(back01.gif) repeat-y 50% 0;
}
#container2
{
background: url(back02.gif) repeat-y 80% 0;
}
#content
{
width: 44%;
float: left;
margin: 1em 3%;
}
#news
{
width: 24%;
float: left;
margin: 1em 3%;
}
#nav
{
width: 14%;
float: left;
margin: 1em 0 1em 3%;
}
#nav ul
{
margin: 0;
padding: 0;
list-style-type: none;
line-height: 150%;
}
#footer
{
clear: both;
background: #387A9B;
color: #fff;
padding: 5px 3%;
text-align: right;
}
</style>
</head>
<body>
<h1>
Jean-Jacques Gallery
</h1>
<div id="container">
<div id="container2">
<div id="content">
<h2>
Page Heading
</h2>
<p>
what the heck
</p>
</div>
<div id="news">
<h3>
News
</h3>
<p>
Is that all there is she said, she was a cat by the way!
</p>
</div>
<div id="nav">
<h3>
Sections
</h3>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Imooi</a></li>
<li><a href="#">Jane Tivol</a></li>
<li><a href="#">Fireforms Stuido</a></li>
<li><a href="#">Gibran Dosal</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div id="footer>
Copyright - mother Mary!
</div>
</div>
</div>
</body>
</html>
Please be nice, I am really trying to get away from tables. I have been up for 3 days straight trying to make the layouts work.