Template:Float style: Difference between revisions
en>Sdkb (marking as alpha template, since appears unused and behaves unexpectedly (see here)) |
m (1 revision imported) |
Latest revision as of 17:39, 8 November 2020
float: right; clear: right;
This template is rated as alpha. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This helper template may be used by sidebar, infobox, and image templates to generate the style statements for controlling float behaviour.
Examples
style="
→ style="float: right; clear: right;"
{{float style}}
"
style="
→ style="float: right; clear: right;"
{{float style|right}}
"
style="
→ style="float: left; clear: left;"
{{float style|left}}
"
style="
→ style="float: none; clear: both; margin-left: auto; margin-right: auto;"
{{float style|center}}
"
style="
→ style="float: none; clear: both; margin-left: auto; margin-right: auto;"
{{float style|both}}
"
style="
→ style="float: none; clear: none;"
{{float style|none}}
"
style="
→ style="float: right; clear: right; margin: 0 0 1em 1em;"
{{float style|margin=1em}}
"
style="
→ style="float: right; clear: right;"
{{float style|right|margin=1em}}
"
style="
→ style="float: left; clear: left; margin: 0 1em 1em 0;"
{{float style|left|margin=1em}}
"
style="
→ style="float: none; clear: both; margin-left: auto; margin-right: auto;"
{{float style|center|margin=1em}}
"
style="
→ style="float: none; clear: both; margin-left: auto; margin-right: auto;"
{{float style|both|margin=1em}}
"
style="
→ style="float: none; clear: none; margin: 0 0 1em 1em;"
{{float style|none|margin=1em}}
"