Float text/text align for images

https://www.phpbb.com/ideas/
Locked
Author:
Jesper Møller
Posted:
Sat Mar 09, 2019 12:14 pm
Rating:
Status:
New
User avatar
Jesper Møller
Registered User
Posts: 239
Joined: Wed Jul 05, 2006 1:00 pm
Location: Copenhagen Denmark
Name: Jesper G.O. Møller
Contact:

Float text/text align for images

Post by Jesper Møller » Sat Mar 09, 2019 12:14 pm

whenoploading images to be placed inline i would be nice with an option to be able to choose float text beside the image

i imagen a float left/right option
"Education is learning what you didn't even know you didn't know!"

"True knowledge exists in knowing that you know nothing."

User avatar
AbaddonOrmuz
Registered User
Posts: 637
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Float text/text align for images

Post by AbaddonOrmuz » Sat Mar 09, 2019 11:14 pm

It can be easily done with a custom BBCode or with an extension adding extra parameters to the default [img] BBCode.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3998
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Float text/text align for images

Post by HiFiKabin » Sun Mar 10, 2019 11:11 am

Exactly so

BBCode Usage:

Code: Select all

[imageleft]{URL}[/imageleft]
HTML Replacement:

Code: Select all

<img src="{URL}" style="float:left;padding-right: 5px;" />
Help Line:

Code: Select all

Any text added after [/imageleft] will be wrapped around the image.
and

BBCode Usage:

Code: Select all

[imageright]{URL}[/imageright]
HTML Replacement:

Code: Select all

<img src="{URL}" style="float:right;padding-right: 5px;" />
Help Line:

Code: Select all

Any text added after [/imageright] will be wrapped around the image.

Topic Locked

Locked

Return to “phpBB Ideas”