Float Right | Float Left
#1
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>

[Image: iYa29IFsjRtGF.png]


Reply
#2
If you are going to include these than I believe you should also include a <br clear="all" /> tag.
Need web hosting? Try MyBBWebHost!
#1 for Running MyBB Communities
The world's only premium web host dedicated to MyBB forums.

Reply
#3
Where abouts?

[Image: iYa29IFsjRtGF.png]


Reply
#4
a span with float should have display:block as well (like a div)

No need to clear Wink
Reply
#5
(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
[Image: igG319dTu71gT.png]
Reply
#6
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.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)