Template:Float right

Revision as of 10:44, 25 July 2013 by Nicjansma (talk | contribs) (Consistency with {{float left}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

Usage[edit]

This template floats text to the right.

Offset[edit]

You can prevent the text from floating all the way to the right through the use of the right parameter:

{{float right|'''This text is floated right with no offset.'''}}

yields This text is floated right with no offset. but

{{float right|'''This text is floated right with an offset of 3em.'''|3em}}

yields This text is floated right with an offset of 3em.

Parameters[edit]

  • 1st {{{text}}}
  • 2nd {{{right}}} sets the margin to the right of the floated text to the designated amount.
  • 3rd {{{top}}} sets the top and bottom margin of floated text to the designated amount
  • 4th {{{left}}} sets the margin to the left of the floated text to the designated amount.

The distance parameters must include a unit (e.g. 2px or 3em).

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

This text is
floated right
using {{float right}}.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

See also[edit]