Jump to content
Toggle menu
  • 799 articles
  • 4.8K files
  • 4 users
  • 64.6K edits
2b2t Uncensored
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Clear: Difference between revisions

Template page
m>Pathoschild
simplified documentation
m>Edokter
CSS terminator
Line 1: Line 1:
<div style="clear:both;"></div><noinclude>
<div style="clear:both;"></div><noinclude>
==Usage==
{{documentation}}
<pre>{{clear}}</pre>
 
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>
</noinclude>

Revision as of 00:31, 2 June 2011

Template documentation[view] [edit] [history] [purge]
Description
This template is a shorthand for <br style="clear: both;" />.
It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.).
Syntax
{{clear}} clears both right and left content.
{{clear}} clears only left floating objects.
{{clear}} clears only right floating objects.
{{clear}} will not clear text after floating objects.
Other options
inherit and initial
See also
{{-}} and {{clr}} clear both like this template. They do not have options.
{{clrl}} clears left.
{{clrr}} clears right.