Views
Actions
Difference between revisions of "Template:Clear"
From Forge Community Wiki
imported>CesarB m (rv needless addition of an unneeded semicolon) |
imported>Willscrlt (Updated to match current en.wiki version) |
||
Line 1: | Line 1: | ||
− | <div style="clear:both"></div><noinclude>{{ | + | <div style="clear:both;"></div><noinclude> |
+ | |||
+ | ---- | ||
+ | This template outputs <code><div style="clear:both;"></div></code>, which causes a break to be added between two objects. If there is an image, infobox, or other item floating to the left of the right, the break will extend to the bottom of the floated item. In other words, it will expand until the space is clear on both the left and the right. | ||
+ | |||
+ | |||
+ | == 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> |
Revision as of 23:21, 7 September 2008
This template outputs <div style="clear:both;"></div>
, which causes a break to be added between two objects. If there is an image, infobox, or other item floating to the left of the right, the break will extend to the bottom of the floated item. In other words, it will expand until the space is clear on both the left and the right.
See also
- Template:Tl delays content until left column is complete.
- Template:Tl delays content until right column is complete.
- Template:Tl is similar, but technically different.
- The finer points of Template:Tl vs. Template:Tl are discussed in w:Template talk:- and w:Template talk:Clear.