Template:Float style
From Wikipedia, the free encyclopedia
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.
Also try the floatright
and floatleft
classes pre-defined in MediaWiki CSS.
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; margin: 0 0 1em 1em;"{{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; margin-top: 1em; margin-bottom 1em;"{{float style|center|margin=1em}}
"
style="
→ style="float: none; clear: both; margin-left: auto; margin-right: auto; margin-top: 1em; margin-bottom 1em;"{{float style|both|margin=1em}}
"
style="
→ style="float: none; clear: none; margin: 0 0 1em 1em;"{{float style|none|margin=1em}}
"
Subpages of this template.