Hello, I'm having difficulties with spaces between div blocks:
<div id="maincontentwrapper" >
<img src="images/content-top.png" alt="main content border image" border="1" />
<div id="maincontent" >
<div id="pagecontent">
<h1>Mission Statement</h1>
</div>
</div>
<img src="images/content-bottom.png" alt="main content border image" />
</div>
This is creating a page with a full bordered image. All is well, however as soon as I enter a block level element inside of pagecontent, e.g. the header as shown, then a gap appears between the content-top.png image and the maincontent div.
If I change the first character to be inline, e.g. a non-breaking space or simply a letter, then the gap does not appear.
This is the (relevant) css:
img {
margin: 0;
padding: 0;
}
#maincontentwrapper {
}
#maincontent {
background-image: url('../../images/content-main.png');
background-repeat: repeat-y;
min-height: 300px;
width: 757px;
}
#pagecontent {
width: 625px;
margin-left: auto;
margin-right: auto;
}
Thanks for any help