Difference between revisions of "Template:Spacer"

From GodWiki
Jump to: navigation, search
m (Undo revision 96783 by FeRDNYC (talk) Nope, I was right, inline-block)
(Tag: Undo)
m (Correct docs)
Line 1: Line 1:
 
<div style="display:inline-block;min-width:15em;height:0px;"> </div><noinclude>
 
<div style="display:inline-block;min-width:15em;height:0px;"> </div><noinclude>
 
{{doc|content=
 
{{doc|content=
This template inserts an <code>inline-block</code> spacer {{tag|div}} with <code>min-width: 15em</code> and <code>height: 1px</code>, which can be placed before paragraphs which would otherwise render alongside floated elements on mobile.}}
+
This template inserts an <code>inline-block</code> spacer {{tag|div}} with <code>min-width: 15em</code> and <code>height: 0px</code>, which can be placed before paragraphs which would otherwise render alongside floated elements on mobile.}}
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 00:36, 17 February 2019

📚 Documentation
This template inserts an inline-block spacer <div>...</div> with min-width: 15em and height: 0px, which can be placed before paragraphs which would otherwise render alongside floated elements on mobile.