Difference between revisions of "Template:Clear"

From Project-GC
Jump to: navigation, search
(Clear template (copied from Wikipedia))
 
m (one </nowiki> was redundant)
 
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>
 

Latest revision as of 18:21, 10 March 2020

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>