MyBB Community Forums
Float Right | Float Left - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Float Right | Float Left (/thread-72828.html)



Float Right | Float Left - Jessie S. - 2010-07-03

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>



RE: Float Right | Float Left - Zash - 2010-07-03

If you are going to include these than I believe you should also include a <br clear="all" /> tag.


RE: Float Right | Float Left - Jessie S. - 2010-07-03

Where abouts?


RE: Float Right | Float Left - patrick - 2010-07-03

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

No need to clear Wink


RE: Float Right | Float Left - Spencer - 2010-07-04

(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


RE: Float Right | Float Left - ZebraNasty - 2011-07-06

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.