Template:Zfloat right
Appearance
Usage
[edit]This template floats text to the right without changing textual alignment, however (unlike {{float right}}) the remaining text on the page is overlaid as if the floated text is not present at all. This permits such effects as:
{{zfloat right|{{nowrap|'''This text is floated right with no offset.'''}}}}{{centre|''This text is truly centred.''}}which yields
This text is truly centred.
whereas (traditional approach):
{{float right|'''This text is floated right.'''}}{{centre|''This text is '''not''' truly centred.''}}yields
This text is not truly centred.
Other applications:
{{zfloat right|{{nowrap|'''10em offset.'''}}|right=10em}}{{centre|Centred reference text.}}yields
Centred reference text.
{{zfloat right|{{nowrap|'''12em wide.'''}}|right=10em|width=12em}}{{centre|Centred reference text.}}yields
Centred reference text.
Limitations
[edit]- If insufficient display width is available, the text blocks will overlap with the result likely to be quite unreadable.
- It will normally be necessary to take measures as above to suppress white-space wrapping (e.g. {{nowrap}}) in the floated text.
Parameters
[edit]- right: Specify right margin offset (default is 0)
- top: Specify specify vertical offset (default 0, which normally results in level alignment)
- width: Specify content presentation width (no default)
See also
[edit]- {{float right}}
- {{nowrap}}
- {{runningheader}}
- {{zfloat left}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Text or content to be floated ( This must not contain block level elements. | Unknown | required |
right | right | Specify right margin offset (default is 0) (CSS units) | String | optional |
top | top | Specify specify vertical offset (default 0, which normally results in level alignment) (CSS units) | String | optional |
width | width | Specify content presentation width (no default) | String | suggested |