Difference between revisions of "Template:Spacer"
m (Raise min-width to 15em.) |
m (Correct docs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="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 | + | 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
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.