View Full Version : Image alignment
I did some digging and found This (https://vborg.vbsupport.ru/showthread.php?t=37071) posted waaaaay back around here. Obviously this won't work in VB3 because the file structure and coding has changed (BB code is now handled in includes/functions_bbcodeparse.php and the preg_replace is different; img code parsing happens around line 997).
Adding a new [imgalign] BB code like suggested on that thread still works, although I'd really like to use [img=left/right/center] instead. Has anyone already figured this out?
peterska2
10-12-2004, 04:09 PM
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
peterska2
10-12-2004, 04:11 PM
For the above I just put
[right ][/right ]
[center ][/center ]
[left ][/left ]
around the [img ] tags for the image
Yes, but that only shifts the image left/center/right and fails to grant the advantage of <img src="blah.gif" align="left" /> (allowing text to wrap around and float next to images).
zetetic
04-17-2005, 12:09 AM
Yes, but that only shifts the image left/center/right and fails to grant the advantage of <img src="blah.gif" align="left" /> (allowing text to wrap around and float next to images).
Better late than never? I swear I found this custom bbcode around here somewhere, but can't find it again:
Title: Float
Tag: float
Replacement: <span style="float:{option}">{param}</span>
Example: ImageFloat Text
Description: Float an image to the left or right of a block of text.
Use {option}: Yes
paulyy
04-17-2005, 12:19 AM
Off topic ....
<img src="blah.gif" align="left" />
Get with it, it's 2005. Align in an image tag is now deprecated :)
RichieBoy67
04-17-2005, 12:25 AM
[center ][/center ]
I thought these tags were depreciate too???
I thought we were now supposed to use < div align = "center"> </div> -- something like that anyways...
no???
Princeton
04-17-2005, 01:16 PM
use CSS to align
this way you can use the class throughout the site
<span style="float:{option}">{param}</span>
should be
<span class="{option}">{param}</span>
add to CSS manager
/*right float*/
.rfloat {
float:right
}
/*left float*/
.lfloat {
float:left
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.