Log in

View Full Version : Image border custom bbcode


Raw Sugar
06-29-2009, 03:18 AM
How do I go about making a border appear on the image tag? I know I can get a black border, but I want the tborder_bgcolor to be the border color so it will match all schemes.

This, you'd think, would work:
<img style='border: 1px solid $stylevar[tborder_bgcolor]' src='{param}'>

But it doesn't. No border.

I do have a few of these:
<table align='center' cellpadding='1' cellspacing='0' style='padding-right:5px'><tr><td><table width='100%' align='center' cellpadding='1' cellspacing='0' class='tborder'><tr><td><img src='{param}'></td></tr></table></td></tr></table>
This aligns the image to the center and gives it a border.

I did try this for the regular one that I'm currently trying to create, but the thing is that if I have a series of images and I use the code, they go on separate lines. I want them to be able to be side-by-side. With tables, that's not possible.

So if anyone has any ideas or has figured out how to call the tborder_bgcolor for the border, please let me know! This is driving me insane!