Forum Moderators: not2easy
I have a container div which contains four divs each containing parts of an image which is sliced into four pieces. When viewed in IE windows, a line break is appearing between the divs, which prevents the sliced image from aligning properly.
Here's a simplified code sample:
<div>(container)
<div1>(contains top slice of image)
<div2>(contains left slice of image)
<div3>(contains right slice of image)
<div4>(contains bottom slice of image)
</div>
here's the stye declarations:
.blackboxtop {
width: 722px;
float: left;
margin: 0px
}
.blackboxleft {
width: 10px;
float: left;
margin: 0px
}
.blackboxright {
width: 10px;
float: right;
margin: 0px
}
.blackboxbottom {
width: 722px;
float: left;
margin: 0px
}
A line break appears after the top slice and before the bottom slice.
Any ideas on how to fix this?
Incidentally, you may be able to reduce that by one container if you place one of the images in the biggest container.