There's a quick way of doing it, series of boxes enclosing other boxes with a border from darker to lighter colors to simulate the inner shadow. Any other ideas?
<div style="background: transparent url(top.gif) no-repeat; background-postition: top left"> <div style="background: transparent url(bottom.gif) no-repeat; background-position: bottom left"> <div style="background: transparent url(faux_column.gif) repeat-y">
</div> </div> </div>
this is assuming that the box is fixed in width and must expand vertically. If the box need not expand you can simply use a single image background. If the box needs to expand in both directions you will need at least 6 nested containers (divs)
Does it make sense that I had to nest an extra div in there so I could add padding to the box containing the text? I wasn't able to pad the one with the faux column without having text overflow.
Either way, this works great, but I was wondering if there was a way to save on a div.
Thanks again for your help and time. I really appreciate it! ;-)
for the faux_column box. You might want to keep the extra container though, since padding and fixed width/height will cause problems with explorer under quirks mode.
this is the basic "sliding doors" technique. You can see that it's easy to modify it to use with tabs/buttons, and anything in general that needs to expand in one direction.
if the item you are creating does not need to expand too far, you can combine the faux_column and the bottom or top into one container. This will result in one large image and one small image. The upside is that you only need 2 containers, but at a max height it will no longer work.
envi's solution propably works just as well for this situation, but you will need images for more complex effects.