Template:Clear: Difference between revisions

From Ethan's Workspace
Jump to navigation Jump to search
No edit summary
pass class through
Line 1: Line 1:
{{#if:{{{toc|}}}|__TOC__}}<div style="clear:{{{1|both}}}"></div><noinclude>
<div style="clear:{{{1|both}}};" class={{{class|}}}></div><noinclude>
Used to push any content that follows the template below floating elements. Usage below:
{{documentation}}
 
</noinclude>
*<code><nowiki>{{clear|left}}</nowiki></code> pushes subsequent content below left-floated elements
*<code><nowiki>{{clear|right}}</nowiki></code> pushes subsequent content below right-floated elements
*<code><nowiki>{{clear}}</nowiki></code> pushes subsequent content below both left and right floated elements
*<code><nowiki>{{clear|toc=1}}</nowiki></code> places the table of contents before the clear so that it's not pushed down
 
[[Category:Utility templates]]</noinclude>

Revision as of 09:32, 13 February 2024