I have a box that has a border around it, I split it into 3 parts like in this image (top, middle and bottom):
The box is placed in a wrapper, here is my piece of code:
CSS:
.wrapper { background: url("../images/sprites.png") no-repeat; }
.box-top { background-position: -258px -234px; width: 685px; height: 35px; }
.box-middle { background-position: -258px -271px; width: 684px; height: 1px; }
.box-bottom { background-position: -258px -274px; width: 685px; height: 35px; }
HTML:
<div class="wrapper">
<div class="box-top"></div>
<div class="box-middle">
Lorem ipsum dolor sit amet
</div>
<div class="box-bottom"></div>
</div>
Well the problem is that I am trying to make it to show up normally when text stretches to bottom, but I can't, because all my images are arranged in a sprite, and as you see from .box-middle
the height is 1px and if I'll change that to more then the whole sprite will show up instead of only image position that I have indicated. Maybe I'm doing something wrong? I want to please you guys to point me in the right direction. Thanks