Difference between revisions of "Template:ScrollBox"

From Drawn to Life Wiki
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table cellpadding="0" cellspacing="0" border="0" align="center" style="width:{{{w|100%}}}; margin-bottom:0px; margin-top:0px; overflow-x: hidden; box-shadow: #0000003b 5px 0px 7px inset; clip-path: inset(0px 0px 0px 11px);"><tr><td style="background:transparent;"><div style="overflow:hidden; height:auto; max-height:{{{height|{{{h|300px}}}}}}; width:{{{width|{{{w|100%}}}}}}; background:transparent;">
+
<includeonly><table cellpadding="0" cellspacing="0" border="0" align="center" style="width:{{{w|100%}}}; margin-bottom:0px; margin-top:0px; overflow-x: hidden; box-shadow: #0000003b 5px 0px 7px inset; clip-path: inset(0px 0px 0px 11px); padding: 1px 25px 1px 25px;"><tr><td style="background:transparent;"><div style="overflow-x:hidden; height:auto; max-height:{{{height|{{{h|300px}}}}}}; width:{{{width|{{{w|100%}}}}}}; background:transparent;">
 
{{{content|{{{1}}}}}}
 
{{{content|{{{1}}}}}}
{{Spacer}}
 
 
</div></td><td style="width:5px;"></td></tr></table></includeonly><noinclude>
 
</div></td><td style="width:5px;"></td></tr></table></includeonly><noinclude>
 
==Usage==
 
==Usage==

Latest revision as of 21:44, 18 December 2020

Usage

{{ScrollBox|
 |content = ScrollBox Content
 |height  = Height (defaults to 300px)
 |width   = Width  (defaults to 100%)
}}