Template:-: Difference between revisions

Template page
w:c:strategywiki>DrBob
m (Description)
m (9 revisions imported: Imported from https://strategywiki.org/)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><div style="clear: both;"></div></includeonly><noinclude>Includes a clearing element when used. Very useful for making floating elements stay within their section when the section is very small vertically.
<includeonly><div style="clear: {{{1|both}}};"></div></includeonly><noinclude>Includes a clearing element when used. Very useful for making floating elements stay within their section when the section is very small vertically.
 
==Usage==
<pre>{{-}}</pre>
or
<pre>{{-
|left, right, or both (default: both)
}}</pre>


== Example ==
== Example ==
Line 11: Line 18:
=== Header 2 ===
=== Header 2 ===


With the clearing element between Header 1 and Header 2, the two headers are seperated from each other.
With the clearing element between Header 1 and Header 2, the two headers are separated from each other.


[[Category:Templates|-]]</noinclude>
[[Category:Templates| ]]</noinclude>

Latest revision as of 18:29, 28 October 2023

Includes a clearing element when used. Very useful for making floating elements stay within their section when the section is very small vertically.

Usage[edit source]

{{-}}

or

{{-
|left, right, or both (default: both)
}}

Example[edit source]

Header 1[edit source]

This is a floating element.

Normally Header 2 would start immediately below this text, which would look very ugly.

Header 2[edit source]

With the clearing element between Header 1 and Header 2, the two headers are separated from each other.