I'm trying to create borders with images, and I'm almost there, but the left and right divs aren't quite right. The left one is under the TL, which is bad, and the right one floats under it for some reason and makes the bottom stuff all shifted over. I could attach an example if I knew a good site to put sample stuff on (don't want to give away my url)
html
<div id="text">
<div class="tl"></div><div class="tm"></div><div class="tr"></div>
<div class="left"></div><div class="content"></div><div class="right"></div>
<div class="bl"></div><div class="bm"></div><div class="br"></div>
</div>
css
.tl {
background: url(corner1.png) no-repeat;
float: left;
height: 56px;
width: 55px
}
.tm {
width: 352px;
height: 59px;
background: url(top.png) repeat-x;
float: left;
}
.tr {
background: url(corner2.png) no-repeat;
float: left;
height: 56px;
width: 55px
}
.content {
padding: 0 5px;
width: 360px;
float: left
}
.bl {
background: url(corner4.png) no-repeat;
float: left;
height: 56px;
width: 55px
}
.bm {
width: 352px;
height: 58px;
background: url(bottom.png) repeat-x;
float: left;
}
.br {
background: url(corner3.png) no-repeat;
float: left;
height: 56px;
width: 55px
}
.left {background: url(left.png) repeat-y; width: 58px; height: 100%}
.right {background: url(right.png) repeat-y; width: 58px; float: left; height: 100%}