Hi all,
Im trying to have a background image with curved edges for text areas, consisting of a header, middle section and footer. There are 3 seperate images and I want the header fixed, middle section variable (because the amount of content varies per page) and footer fixed.
When I line it up it displays correctly in my web design program but once uploaded online the header, middle section and footer leave a gap between each other. Please see the images and code below... Id be greatful if anyone can offer some advice how to solve this problem.
Thanks
Code:
HTML:
<div id="contenthead">
<p>TEST</p>
</div><div id="subcontent">
<p>Trying to get the subheader, middle and footer to align correctly</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div><div id="contentfoot"></div>
CSS:
#contenthead {
background: url(images/subheader.png);
background-repeat: no-repeat;
width: 740px;
height: 80px;
background-position:center;
margin-left: auto;
margin-right:auto;
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:18px;
padding-left: 40px;
}
#subcontent {
background: url(images/submiddle.png);
width: 740px;
background-position:center;
padding-left: 40px;
margin-left: auto;
margin-right:auto;
margin-top:0px;
margin-bottom:0px;
}
#contentfoot {
background: url(images/subfooter.png);
background-repeat: no-repeat;
width: 740px;
height: 95px;
background-position:center;
margin-left: auto;
margin-right:auto;
margin-top: 0px;
font-family:Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:18px;
padding-left: 40px;
}