Difference between revisions of "Template:Clear"

From Nookipedia, the Animal Crossing wiki
(Categorized to Formatting Templates)
m
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="clear:both;"></div><noinclude>
+
<div style="clear:{{{1|both}}}"></div><noinclude>
----
+
Placing <nowiki>{{clear}}</nowiki> onto a page causes any following content to appear below the content above the template. This template is mainly used to prevent new sections from appearing next to images.
Placing <nowiki>{{clear}}</nowiki> onto a page will cause any following content to appear below the content that is above the template. This template is mainly used to prevent new sections from appearing next to images.
+
 
 +
It can also give space to left or right sides of a section:
 +
 
 +
*<code><nowiki>{{clear|right}}</nowiki></code> gives space to right side of a section.
 +
*<code><nowiki>{{clear|left}}</nowiki></code> gives space to left side of a section (ideal when headers clash with infoboxes).
 
[[Category:Formatting Templates]]
 
[[Category:Formatting Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 08:39, March 7, 2020

Placing {{clear}} onto a page causes any following content to appear below the content above the template. This template is mainly used to prevent new sections from appearing next to images.

It can also give space to left or right sides of a section:

  • {{clear|right}} gives space to right side of a section.
  • {{clear|left}} gives space to left side of a section (ideal when headers clash with infoboxes).