Difference between revisions of "Template:Clear"

From PortlandWiki
Jump to: navigation, search
(Template building exercise, next page save after Template:NoWiki)
m (Updating with clear template from GLAM: http://meta.wikimedia.org/wiki/Template:Clear)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="clear:both"></div><noinclude>This template addresses spacing issues between sections or blocks of text. Often, an image will jut down into the next section, especially on smaller monitors; this template, if placed at the bottom of the section, forces the next section down a little, adding some white space.</noinclude>
+
<div style="clear:both;"></div><noinclude>
 +
==Usage==
 +
<pre>{{clear}}</pre>
  
{{NoWiki|Clear}}
+
This template adds a break, pushing following content to the next line below nearby floating images or templates.
 +
 
 +
==See also==
 +
* {{tl|clearleft}} delays content until left column is complete.
 +
* {{tl|clearright}} delays content until right column is complete.
 +
* {{tl|-}} is similar, but technically different.
 +
*: ''The finer points of {{Tl|clear}} vs. {{Tl|-}} are discussed in [[w:Template talk:-#- versus clear|w:Template talk:-]] and [[w:Template talk:Clear]].''
 +
 
 +
 
 +
[[Category:Typing-aid templates|{{PAGENAME}}]]
 +
[[Category:Formatting templates|{{PAGENAME}}]]
 +
</noinclude>

Latest revision as of 14:45, 14 March 2012

Usage

{{clear}}

This template adds a break, pushing following content to the next line below nearby floating images or templates.

See also