Log in

View Full Version : Image Borders?


Mikhailtech
11-19-2007, 01:14 PM
Can image borders be added to images posted in the message board using a replacement variable or something of the sort? Like [ IMG border=1 ] or something. This would be optional of course .. you can choose to add a border to an image. Also, if this is possible, can it be added to the WYSIWYG somehow?

I know the IMG tag doesn't by default take parameters, but is there a mod that will let you do this?

Opserty
11-19-2007, 08:40 PM
Well you can either create you own custom border bbcode say like blabla then create you own HTML for that.

Or you could make a new custom BBCode which has something like BLA then your replacement would be:
<span class="imgbord">{param}</span>

Then you can go to you Main CSS (in your style manager) and create some CSS for it

E.g.:

.imgbord img {border:1px solid #000000;}


(The second option is a tad more complex but it may be more flexible.)

Mikhailtech
11-29-2007, 02:14 AM
thanks! the second option is exactly what I was looking for!