Template:Clear: Difference between revisions
From Step Mods | Change The Game
(Created page with "<br style="clear: both; height: 0px;" /><noinclude> Invisible break that forces following content to after the bottom of all floating boxes.</noinclude>") |
(Updated to accept a variable to perform left/right clears.) |
||
Line 1: | Line 1: | ||
< | <!-- ####################################################################### --> | ||
<!-- ### Forces a break on floating content. --> | |||
<!-- ####################################################################### --> | |||
{{#ifeq: {{{1|}}} | left | {{#vardefine:clear|left}} }} }} | |||
{{#ifeq: {{{1|}}} | right | {{#vardefine:clear|right}} }} }} | |||
{{#if {{{1|}}} | | {{#vardefine:clear|both}} }} | |||
<div style="clear: {{#var:clear}}"> </div> <noinclude> | |||
Performs a clear to force content to appear directly below floating content. | |||
<pre> | |||
{{clear}} | |||
{{clear|left}} | |||
{{clear|right}} | |||
</pre> | |||
</noinclude> |
Revision as of 08:40, December 30, 2012
}} }}
{{#if | | }}
Performs a clear to force content to appear directly below floating content.
{{clear}} {{clear|left}} {{clear|right}}