I'm having trouble understanding this situation.
There seems to be an issue with a block element inside another block element. The child element is expanding its height to 100% and overlapping the bottom padding of the parent, ignoring it completely.
What might be causing this unexpected behavior?
Check out the HTML code snippet below:
<span class="boxTop">
<span class="boxBottom">
<span class="boxLeft">
<span class="boxRight">
<span class="box">
Content goes here
</span>
</span>
</span>
</span>
</span>
And here's the corresponding CSS:
.infoBox .boxTop {
padding:20px 0 0 0;
display:block;
background:transparent url(images/infobox-top.png) repeat-x 0 0;
}
.infoBox .boxBottom {
padding:0 0 20px 0;
display:block;
background:transparent url(images/infobox-bottom.png) repeat-x 0 bottom;
}
.infoBox .boxLeft {
padding:0 0 0 20px;
display:block;
background:transparent url(images/infobox-left.png) repeat-y left 0;
}
.infoBox .boxRight {
padding:0 20px 0 0;
display:block;
background:transparent url(images/infobox-right.png) repeat-y right 0;
}
Here's a visual representation of the issue in IE7:
You can see the boxBottom here:
and both boxLeft and boxRight elements are expanding and disregarding the padding of boxBottom: http://img.photobucket.com/albums/v466/nemesis2k4/Forum%20Posts/boxright.jpg