Template:Clear: Difference between revisions

427 bytes added ,  22 May 2019
m
no edit summary
imported>Craiga2124
m (Protected "Template:Clear" [edit=autoconfirmed:move=autoconfirmed])
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="clear:{{#if:{{{1|}}}|{{{1}}}|both}};"></div><noinclude>{{/doc}}</noinclude>
<div style="clear:{{#if:{{{1|}}}|{{{1}}}|both}};"></div>
<noinclude>This template adds <tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>.
 
The nameless first parameter is optional; if specified, it should either be <tt>left</tt> or <tt>right</tt>. If it is set to <tt>left</tt>, then the template will add
<pre>
<div style="clear:left;"></div>
</pre>
Similarly, setting the first parameter to <tt>right</tt> will add:
<pre>
<div style="clear:right;"></div>
</pre>
 
[[Category:Formatting templates]]
</noinclude>
trusted-editors
9,522

edits