Template:Float right/doc
Contents
Usage
This template floats text to the right.
Offset
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
- 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 |
See also
- {{float left}}