float: right; clear: right;
| This template is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output 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
editstyle=" → 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}}"