Hi,
I notice you have used absolute positioniong and floats also in the same style. You can't have both ! Either its floated or its not.
I've adjusted your css to absolutely position the left and right columns (and added a doctype as mentioned by Albion7 above).
I've also corrected the width issues and the gaps between the image and text. The resulting css will look the same in firefox/mozilla and ie6.
As there ar no floats you don't need to clear anything as all the changes are in the css.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Kentucky Railway Museum</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FF0000;
padding:0;
margin:0;
}
div#leftnav {
position: absolute;
height: auto;
width: 120px;
left: 0px;
top: 0px;
background-color: #FF0000;
}
div#header{
margin-left: 120px;
position: relative;
height: 140px;
background-color: #FF0000; }
div#content{
margin-left: 120px;
position: relative;
width: 510px;
padding:0 20px;
background-color: #FFFFFF;
background-image: url(http://kyrail.rrhistorical-2.com/images/track_bg2.png);
background-repeat: repeat-y;
background-position: center;
}
div#header{ }
div#block{ }
img.header {
text-align: center;
vertical-align: top;
}
div#rightnav{
position:absolute;
width: 120px;
left:690px;
top:0px;
background-color: #FF0000;
}
a.nav {
color: #000000;
font-variant: small-caps;
font-size: 13px;
font-weight: bold;
}
hr {
color: #FFFF00;
height: 1px;
width: 70%;
}
a.nav:hover {
color: #FFFF00;
font-variant: small-caps;
font-size: 13px;
font-weight: bold;
}
#header img {display:block}
</style>
</head>
<body>
Add the rest of your page to the above and the page should display as you want.
(If you want to change the left and right columns to floats then you will need to change your code around to accomodate it as floated content must come before the content that is to wrap around it. Or alternatively float all columns but then the columns will drop when the screen is resized.)
Paul
Bookmarks