Template:Clear: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Willscrlt Updated to match current en.wiki version |
|||
(6 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<div style="clear:both;"></div><noinclude> |
<div style="clear:both;"></div><noinclude> |
||
==Usage== |
|||
<pre>{{clear}}</pre> |
|||
This template adds a break, pushing following content to the next line below nearby floating images or templates. |
|||
---- |
|||
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. |
|||
⚫ | |||
⚫ | |||
* {{tl|clearleft}} delays content until left column is complete. |
* {{tl|clearleft}} delays content until left column is complete. |
||
* {{tl|clearright}} delays content until right column is complete. |
* {{tl|clearright}} delays content until right column is complete. |
||
Line 12: | Line 12: | ||
[[Category: |
[[Category:Utility templates]] |
||
[[Category:Formatting templates|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 14:46, 16 May 2018
Usage
{{clear}}
This template adds a break, pushing following content to the next line below nearby floating images or templates.
See also
- {{clearleft}} delays content until left column is complete.
- {{clearright}} delays content until right column is complete.
- {{-}} is similar, but technically different.
- The finer points of {{clear}} vs. {{-}} are discussed in w:Template talk:- and w:Template talk:Clear.