Difference between revisions of "Template:Spacer"

From GodWiki
Jump to: navigation, search
(Attempt at a spacer div to push paragraphs out of floated element gutters, on mobile)
 
m (Raise min-width to 15em.)
Line 1: Line 1:
<div style="width:5em;height:0px;"></div><noinclude>
+
<div style="min-width:15em;height:0px;"></div><noinclude>
 
{{doc|content=
 
{{doc|content=
This template inserts a spacer {{tag|div}} with <code>min-width: 5em</code> and <code>height: 0px</code>, which can be placed before paragraphs which would otherwise render alongside floated elements on mobile.}}
+
This template inserts a 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 09:20, 16 January 2019

Documentation  Documentation
This template inserts a 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.