I’m not familiar with an jQuery plugins that do this, but in HTML, it’s as boring as having a <div>
for each side and corner. E.g.
<div class="top-left">
<div class="top-right">
<div class="top-center"></div>
</div>
</div>
<div class="middle-left">
<div class="middle-right">
<div class="middle-center"></div>
</div>
</div>
<div class="bottom-left">
<div class="bottom-right">
<div class="bottom-center"></div>
</div>
</div>
Use height
and padding
to create space for the corner images (which you’ll probably want to do as sprites), and use background-repeat
to repeat thin images for the sides (if your design supports that).
You may also need to apply font-size: 0
to the top and bottom <div>
s to make the defined heights work properly in IE 6.