Template:Clear View history

({{hprotected}} -> {{protected template}})
m (/doc)
Line 1: Line 1:
<div style="clear: both"></div><noinclude>
<div style="clear: both"></div><noinclude>{{protected template}}{{/doc}}</noinclude>
{{protected template}}
This template adds <tt>&lt;div style="clear: both"&gt;&lt;/div&gt;</tt>;
for technical XHTML details see [[Template talk:{{PAGENAME}}]].
[[Category:Wikipedia special effects templates|{{PAGENAME}}]]
[[vi:Tiêu bản:Clear]]
</noinclude>

Revision as of 16:22, 4 September 2006

Template:Protected template{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang=⧼lang⧽}}

This template makes content wait until existing content (typically tables and images) is fully displayed in all columns before letting subsequent content be displayed. It uses the <div style="clear:TYPE;"></div> formatting to prevent the extra line break that comes with <br style="clear: both" />.

The TYPE variable is controlled with the second parameter as follows:

  • {{clear|left}} - Only the left column must be complete before subsequent content is displayed
  • {{clear|right}} - Only the right column must be complete before subsequent content is displayed
  • {{clear}} or {{clear|both}} - Both left and right columns must be complete before subsequent content is displayed

This template does not generate visible text in the Wiki page.