Difference between revisions of "Template:-/doc"

From MHWiki
(Added doc, modified from Wikipedia analog)
 
m (Updated documentation (template change)
 
Line 2: Line 2:
  
 
== Details ==
 
== Details ==
{{[[template:-|-]]}} contains the markup:  
+
<nowiki>{{-}}</nowiki> contains the markup:  
 
<pre>
 
<pre>
<br clear="all" />
+
<div style='clear:both'></div>
 
</pre>
 
</pre>
 
This causes any previously-established float to clear.  
 
This causes any previously-established float to clear.  
  
 
The unusual name of this template is a mnemonic for an imaginary horizontal line, which separates floating elements above from those below.
 
The unusual name of this template is a mnemonic for an imaginary horizontal line, which separates floating elements above from those below.

Latest revision as of 07:00, 1 February 2022

Use {{-}} after any floating elements and before elements you do not wish to float together with the first set.

Details

{{-}} contains the markup:

<div style='clear:both'></div>

This causes any previously-established float to clear.

The unusual name of this template is a mnemonic for an imaginary horizontal line, which separates floating elements above from those below.