Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:-/Documentation: Difference between revisions

Template page
clearfix doc
 
licensing disclaimer
Line 19: Line 19:


With the clearing element between Header 1 and Header 2, the two headers are separated from each other.
With the clearing element between Header 1 and Header 2, the two headers are separated from each other.
This template is originally part of [https://strategywiki.org/wiki/Main_Page StrategyWiki] which is released under [https://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA 3.0]. This template remains under the CC-BY-SA 3.0 license. See [https://strategywiki.org/w/index.php?title=Template:-&oldid=156677 the original template for previous authors and attribution].
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 21:21, 2 July 2024

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

Usage

{{-}}

or

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

Example

Header 1

This is a floating element.

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

Header 2

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

This template is originally part of StrategyWiki which is released under CC-BY-SA 3.0. This template remains under the CC-BY-SA 3.0 license. See the original template for previous authors and attribution.