Difference between revisions of "Template:Spacer"

From GodWiki
Jump to: navigation, search
m (Set height to 1px to make spacer visible)
m (Needs to be styled display:inline-block as well)
(Tags: Mobile edit, Mobile web edit)
Line 1: Line 1:
<div style="min-width:15em;height:1px;"> </div><noinclude>
+
<div style="display:inline-block;min-width:15em;height:1px;"> </div><noinclude>
 
{{doc|content=
 
{{doc|content=
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.}}
+
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.}}
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 09:29, 16 January 2019

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