OGGordon
12-20-2009, 04:31 PM
Hey guys,
I've been having some trouble with this layout, particularly the center section. Im not sure what I am doing wrong.
Here's what I have as index file:
<body>
<div id="top-wrap">
<div id="header">
<?php include("header.php"); ?>
<?php include("datetimeregion.php"); ?>
</div>
<div id="navwrap">
<div id="nav">
this is the nav
</div>
</div>
<div id="pathbar">
<?php include("path.inc.php"); ?>
</div>
<div id="datetimeregion">
</div>
</div>
<div id="wrap">
<div id="adspace">
this is google ad space
</div>
<div id="middle">
<div id="center">
this is the center
</div>
<div id="right">
this is the right
</div>
</div>
</div>
<div id="footer">
this is the footer
</div>
</body>
</html>
and here is what I wrote in the style.css file
*{ margin:0 auto; padding:0; }
body { background-color:#F3F6F2; }
#top-wrap { width:100%; }
#midwrap { width: 960px; height: 43px; }
#header { width:960px; height: 110px; background-color:ffffff; }
#logo1 { width: 200px; float: left; }
#search { width: 180px; float: left; padding-left: 20px; }
#adspace { width: 960px; margin: 0 auto; background-color: FFFFFF; }
#wrap { width:100%; }
#middle { width:960px; background: #000000; }
#center { width: 760px; float: left; background: #000000; }
#right { width: 200px; float: right; background: #c5c5c5; }
#footer-wrap { width:100%; height: 219px; }
#footer { width:960px; background-color:FFFFFF; }
#navwrap { width: 960px; background-color:#FFFFFF; }
#nav { width: 940px; height: 42px; background-color:E0E5EF; }
#pathbar { width: 760px; height: 30px; background-color:FFFFFF; }
#datetimeregion { width: 260px; height: 43px; float: left; padding-top: 4px; padding-left: 10px; }
#footermain { width: 960px; height: 180px; padding-top: 40px; font-family: verdana; font-size: 12px; color: #fff; }
#footermain a:hover { color: #fff; text-decoration: underline; }
#footermain a { color: #4682C3; text-decoration: underline; }
#footersub { margin-top: 20px; }
#menu1 { width: 200px; float: left; padding-left: 0px; padding-right: 10px; padding-bottom: 10px; margin-left: 0px; }
#menu2 { width: 200px; float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-left: 20px; }
#menu3 { width: 220px; float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-left: 20px; }
But for some reason it doesn't show correctly, see here
http://testobject.cwsurf.de/
I've been having some trouble with this layout, particularly the center section. Im not sure what I am doing wrong.
Here's what I have as index file:
<body>
<div id="top-wrap">
<div id="header">
<?php include("header.php"); ?>
<?php include("datetimeregion.php"); ?>
</div>
<div id="navwrap">
<div id="nav">
this is the nav
</div>
</div>
<div id="pathbar">
<?php include("path.inc.php"); ?>
</div>
<div id="datetimeregion">
</div>
</div>
<div id="wrap">
<div id="adspace">
this is google ad space
</div>
<div id="middle">
<div id="center">
this is the center
</div>
<div id="right">
this is the right
</div>
</div>
</div>
<div id="footer">
this is the footer
</div>
</body>
</html>
and here is what I wrote in the style.css file
*{ margin:0 auto; padding:0; }
body { background-color:#F3F6F2; }
#top-wrap { width:100%; }
#midwrap { width: 960px; height: 43px; }
#header { width:960px; height: 110px; background-color:ffffff; }
#logo1 { width: 200px; float: left; }
#search { width: 180px; float: left; padding-left: 20px; }
#adspace { width: 960px; margin: 0 auto; background-color: FFFFFF; }
#wrap { width:100%; }
#middle { width:960px; background: #000000; }
#center { width: 760px; float: left; background: #000000; }
#right { width: 200px; float: right; background: #c5c5c5; }
#footer-wrap { width:100%; height: 219px; }
#footer { width:960px; background-color:FFFFFF; }
#navwrap { width: 960px; background-color:#FFFFFF; }
#nav { width: 940px; height: 42px; background-color:E0E5EF; }
#pathbar { width: 760px; height: 30px; background-color:FFFFFF; }
#datetimeregion { width: 260px; height: 43px; float: left; padding-top: 4px; padding-left: 10px; }
#footermain { width: 960px; height: 180px; padding-top: 40px; font-family: verdana; font-size: 12px; color: #fff; }
#footermain a:hover { color: #fff; text-decoration: underline; }
#footermain a { color: #4682C3; text-decoration: underline; }
#footersub { margin-top: 20px; }
#menu1 { width: 200px; float: left; padding-left: 0px; padding-right: 10px; padding-bottom: 10px; margin-left: 0px; }
#menu2 { width: 200px; float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-left: 20px; }
#menu3 { width: 220px; float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; margin-left: 20px; }
But for some reason it doesn't show correctly, see here
http://testobject.cwsurf.de/