Your divs aren't nested properly for content and right to affect each other. IE gets it wrong by standards, though it does work as you would expect it to logically and sets child divs without a explicit height to 100% of the parent container though to standards it should be to the contents of the child.
A few small mods gets this
http://www.candsdesign.co.uk/demo/danburzo/
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
text-align: center;
background: #2E2E2E;
margin: 0px;
padding: 0px;
}
#page {
width: 750px;
margin: 0px auto;
text-align: left;
background: #FFFFFF;
}
#main {
width: 750px;
background: #FFFFFF;
}
#content {
float: left;
padding: 20px 0px 20px 20px;
background: #FFFFFF;
}
#right {
width: 159px;
float: right;
color: #C03400;
border-left: 1px dotted #333333;
padding:0px 20px 20px 20px;
background: #FFFFFF;
margin:0px 0px 0px 20px;
}
#footer {
position:relative;
text-align:center;
clear:both;
color:#FF0000;
background-color:#FFFFFF;
}
</style>
</head>
<body>
<div id="page">
<div id="main">
<div id="content">
Content
<div id="right">
Right Side
</div> <!-- right -->
</div> <!-- content -->
</div> <!-- main -->
<div id="footer">Footer</div>
</div> <!-- page -->
</body>
</html>
Note: if the content in "content" extends below the right side it will wrap around the right side.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 05-22-2005 at 04:58 AM..
|