I want to build a website that scales to the browsers width.
It all works fine, except that the parent-div containing the 100%-width-divs is always about 5 pixels too high. That gives me huge problems because of the background color (e.g. blue) spilling out at the bottom.
Why is that? And how to solve? :-)
Kind regards, Jan
head code:
<style type="text/css">
body { background-color:#e7e3d7; margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; }
.banner { width: 100%; }
</style>
body code:
<div style="background-color:#0000ff;">
<div><img class="banner" src="http://www.janriggert.com/images/footer.png"></div>
</div>
Do you see that blue line below the footer? It shouldnt be there... :-/