Template:ScrollBox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(phantom span to catch start of lists)
Line 6: Line 6:
{{tip|If the scrollbar on your ScrollBox starts to get lost, set <code>bottom-border<nowiki>=</nowiki>true</code> to add a faint rule after it.}}
{{tip|If the scrollbar on your ScrollBox starts to get lost, set <code>bottom-border<nowiki>=</nowiki>true</code> to add a faint rule after it.}}


</noinclude>{{#if:{{{title|}}} | <p style="font-style:italic;border-bottom:1px solid #DFDFDF;">{{{title}}}:</p> }}<div style="{{#if:{{{bottom-border|}}} | border-bottom:1px solid #EFEFEF;}}{{#if:{{{title|}}} | margin-left:1em; }}padding:0 .5em;{{#if:{{{noscroll|}}} | | max-height:30em;}}overflow:auto;">
</noinclude>{{#if:{{{title|}}} | <p style="font-style:italic;border-bottom:1px solid #DFDFDF;">{{{title}}}&#58;</p> | <span> </span>}}<div style="{{#if:{{{bottom-border|}}} | border-bottom:1px solid #EFEFEF;}}{{#if:{{{title|}}} | margin-left:1em; }}padding:0 .5em;{{#if:{{{noscroll|}}} | | max-height:30em;}}overflow:auto;">
{{{1}}}
{{{1}}}
</div>
</div>

Revision as of 14:14, 19 July 2009

Use this to rein in the KV, I and O lists on entity pages.

Tip.pngTip:If you've got a short ScrollBox containing a long one, set noscroll=true on the shorter of the pair to avoid having two scrollbars right next to each other.
Tip.pngTip:If the scrollbar on your ScrollBox starts to get lost, set bottom-border=true to add a faint rule after it.

{{{1}}}