BBCode Wrap Image with text around

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre

BBCode Wrap Image with text around

Postby Sr X » Sun Jan 27, 2008 8:08 pm

I need know what is the better way/bbcode to (align right or left) wrap images with text around. of course valid xhtml 1.0 Strict.

i have found a thease, but i dont know what is the better.

oso96_2000 here wrote:@fsinclaire, I stay with this bbcode:

Code: Select all

HTML Replacement:
Code: Select all
<img src="{URL}" alt="{URL}" style="float: {IDENTIFIER}" />

This way i can use [fimg=left]http://image.png[/fimg] to float the image to the left

Highway of Life here wrote:It would actually be better to just have a [right] or [left] tag and put the image inside. This would do the same thing... for example.

Code: Select all

Code: Select all

HTML: option: 1
Code: Select all
<div align="left">{TEXT}</div>

Code: Select all
<div align="right">{TEXT}</div>

HTML: option: 2
Code: Select all
<div style="float:left;">{TEXT}</div>

Code: Select all
<div style="float:right;">{TEXT}</div>

Then in your post...
Code: Select all
[left][img]http://website.tld/image.jpg[/img][/left] Some text here

Give that a try.

kokkan here wrote:Here's another basic but useful custom BBCode. I use it on images that I want to wrap text around.

Code: Select all

<div  style="float: {TEXT1}; padding-left: 10px; padding-right: 10px; padding-top: 2px; padding-bottom: 2px;">{TEXT2}</div>

Use right/left as parameter for the BBCode to select align of the image/object.

nicholasalipaz here wrote:Wrap Image
Code: Select all

Code: Select all
<div style="float:{TEXT1};margin: 2px 2px 6px 6px;"><img src="{TEXT2}"></div>

Code: Select all
Wrap Image: [imgwrap=left|right]URL[/imgwrap]

any more? thanks.
User avatar
Sr X
Registered User
Posts: 200
Joined: Wed Feb 07, 2007 9:25 am

Return to 3.0.x Support Forum

Who is online

Users browsing this forum: AmigoJack, deFco247, Kevin Clark, Mick from Ausmini, NicoBlog, Oyabun1, RMcGirr83, Yahoo [Bot] and 82 guests