Template:Float right/doc

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, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.


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

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.

See also[edit]