MyBB Community Forums

Full Version: Float Right | Float Left
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My first MyCode, don't get mad if its wrong.

Title:
Float Right

Description:
Float your content to the right of the postbit.

Reg. Expression:
\[float-r\](.*?)\[/float-r]

Replacement:
<span style="float: right;">$1</span>



Title:
Float Left

Description:
Float your content to the left of the postbit.

Reg. Expression:
\[float-l\](.*?)\[/float-l]

Replacement:
<span style="float: left;">$1</span>
If you are going to include these than I believe you should also include a <br clear="all" /> tag.
Where abouts?
a span with float should have display:block as well (like a div)

No need to clear Wink
(2010-07-03, 08:52 PM)Jessie S. Wrote: [ -> ]My first MyCode, don't get mad if its wrong.

Off-topic, but it should be "it's", not "its". Toungue
THANK YOU. I was searching for something that worked for like a half an hour and none seemed to work, but yours works for me. Thank you so much.