Difference between revisions of "Template:Clear"

From Project-GC
Jump to: navigation, search
(Clear template (copied from Wikipedia))
 
(Added category)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
* <nowiki>{{clear|left}}</nowiki> — adds <code>&lt;div style="clear:left;"&gt;&lt;/div&gt;</code>
 
* <nowiki>{{clear|left}}</nowiki> — adds <code>&lt;div style="clear:left;"&gt;&lt;/div&gt;</code>
 
* <nowiki>{{clear|right}}</nowiki> — adds <code>&lt;div style="clear:right;"&gt;&lt;/div&gt;</code>
 
* <nowiki>{{clear|right}}</nowiki> — adds <code>&lt;div style="clear:right;"&gt;&lt;/div&gt;</code>
</nowiki>
+
 
 +
[[Category: Wiki Templates]]</noinclude>

Latest revision as of 22:00, 26 April 2024

Description

It makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.

Usage

  • {{clear}} — adds <div style="clear:both;"></div>
  • {{clear|left}} — adds <div style="clear:left;"></div>
  • {{clear|right}} — adds <div style="clear:right;"></div>