I'm trying to create a page that has a header, subheader, leftnav, rightnav, main, and footer. But when I create the header and subheader, there is extra space that separates them. how do I get rid of it?
`/*the main parts of the script*/
body{
background-color: #0080C0;
font-family: Arial, Helvetica, Sans-serif;
margin: 0px;
padding: 0px;
font-size: 15px;
}
#wrapper{
width: 1000px;
margin: 20px auto;
background-color: white;
}
#header{
background-color: aqua;
padding-top: 2px;
font-size: 15px;
padding: 5px;
}
#subheader{
margin: 0px;
background-color: fuchsia;
height: auto;
}
#leftnav{
float:left;
width:200px;
height:auto;
background-color: green;
}
#rightnav{
float:left;
width: 200px;
height: auto;
background-color: red;
}
#main{
float:left;
width: 600px;
height: auto;
background-color: yellow;
min-height: 500px;
}
#footer{
clear:both;
padding:15px;
font-size: 12px;
background-color: gray;
text-align: center;
}`
//the HTML. very simple.
<body>
<div id="wrapper">
<div id="header">
<?php $this->load->view("header"); ?>
</div>
<div id="subheader">
<?php $this->load->view("subheader"); ?>
</div>
<span id="leftnav">
<?php $this->load->view("leftnav"); ?>
</span>
<span id="main">
<?php $this->load->view($main); ?>
</span>
<span id="rightnav">
<?php $this->load->view("rightnav"); ?>
</span>
<div id="footer">
<?php $this->load->view("footer"); ?>
</div>
</div>
</body> http://www.freeimagehosting.net/uploads/54aaee204f.jpg