Template:Clear: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) m (7 revisions) |
m (Adding direction parameter.) |
||
Line 1: | Line 1: | ||
<div style="clear: both"></div><noinclude> | <div style="clear: {{{1|both}}}"></div><noinclude> | ||
==Use== | ==Use== | ||
Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading. | Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading. | ||
The first parameter is optional, and if present, allows you to manually specify a direction of clearance ("left" or "right"). | |||
Where possible you should just copy the code: <tt><div style="clear: both"></div></tt> instead of using <nowiki>{{clear}}</nowiki>. | Where possible you should just copy the code: <tt><div style="clear: both"></div></tt> instead of using <nowiki>{{clear}}</nowiki>. | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 11:35, July 3, 2014
Use
Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading.
The first parameter is optional, and if present, allows you to manually specify a direction of clearance ("left" or "right").
Where possible you should just copy the code: <div style="clear: both"></div> instead of using {{clear}}.