Template:ScrollBox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(new colour scheme)
Line 7: Line 7:


[[Category:Layout Container]]
[[Category:Layout Container]]
</noinclude>{{#if:{{{title|}}} | <p style="font-style:italic;border-bottom:1px solid #DFDFDF;">{{{title}}}&#58;</p> }}
</noinclude>{{#if:{{{title|}}} | <p style="font-style:italic;border-bottom:1px solid #4F4D4B;">{{{title}}}&#58;</p> }}
<div class="scrollbox" style="{{#if:{{{bottom-border|}}} | border-bottom:1px solid #EFEFEF;}}{{#if:{{{noscroll|}}} | | max-height:30em;}}overflow:auto;">
<div class="scrollbox" style="{{#if:{{{bottom-border|}}} | border-bottom:1px solid #4F4D4B;}}{{#if:{{{noscroll|}}} | | max-height:30em;}}overflow:auto;">
{{{1}}}
{{{1}}}
</div>
</div>

Revision as of 04:35, 28 June 2011

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}}}