Template:Clear: Difference between revisions
From Ymirheim Wiki
m (Protected "Template:Clear" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="clear: {{{1|both}}};"></div> | <includeonly><div style="clear: {{{1|both}}};"></div></includeonly><noinclude> | ||
Clears DOM element flow previously affected by blocks with <code>float: left;</code> or <code>float: right;</code> (or both) styles. It makes any following blocks appear under the floating blocks, not beside them. | |||
== Examples == | |||
<pre><nowiki>{{Clear}}</nowiki></pre> | |||
{{Clear}} | |||
<pre><nowiki>{{Clear|left}}</nowiki></pre> | |||
{{Clear|left}} | |||
<pre><nowiki>[[File:Shelphy Adriana.png|thumb|A block with <code>float: right;</code>]] | |||
A text before the clear. | |||
{{Clear|right}} | |||
A text after the clear.</nowiki></pre> | |||
[[File:Shelphy Adriana.png|thumb|A block with <code>float: right;</code>]] | |||
A text before the clear. | |||
{{Clear|right}} | |||
A text after the clear. | |||
[[Category:Formatting Templates]] | |||
</noinclude> |
Revision as of 16:23, 8 July 2024
Clears DOM element flow previously affected by blocks with float: left;
or float: right;
(or both) styles. It makes any following blocks appear under the floating blocks, not beside them.
Examples
{{Clear}}
{{Clear|left}}
[[File:Shelphy Adriana.png|thumb|A block with <code>float: right;</code>]] A text before the clear. {{Clear|right}} A text after the clear.
A text before the clear.
A text after the clear.