Template:Clear: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div style=" {{#if:{{{1|}}} | {{{1}}} | both }};"></div><noinclude> Inserts a <tt>clear: both</tt> block, which pushes content that comes after it beneath objects floating to...") |
(bruh) |
||
Line 1: | Line 1: | ||
<div style=" {{#if:{{{1|}}} | {{{1}}} | both }};"></div><noinclude> | <div style="clear: {{#if:{{{1|}}} | {{{1}}} | both }};"></div><noinclude> | ||
Inserts a <tt>clear: both</tt> block, which pushes content that comes after it beneath objects floating to the left and/or right. Handy for putting text under images and stuff. | Inserts a <tt>clear: both</tt> block, which pushes content that comes after it beneath objects floating to the left and/or right. Handy for putting text under images and stuff. | ||
By default it clears both sides, but you can append <tt>left</tt> or <tt>right</tt> to the vertical bar to only have it clear that side. e.g. <tt><nowiki>{{clear|right}}</nowiki></tt>. | By default it clears both sides, but you can append <tt>left</tt> or <tt>right</tt> to the vertical bar to only have it clear that side. e.g. <tt><nowiki>{{clear|right}}</nowiki></tt>. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 13:44, 26 January 2021
Inserts a clear: both block, which pushes content that comes after it beneath objects floating to the left and/or right. Handy for putting text under images and stuff.
By default it clears both sides, but you can append left or right to the vertical bar to only have it clear that side. e.g. {{clear|right}}.