Template:Scroll box: Difference between revisions
From FrathWiki
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:{{{background| | <table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:{{{background|inherit}}};"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}}; -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;"> | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
</div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__ | </div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__ |
Latest revision as of 04:12, 13 February 2008
{{{1}}} |
Usage instructions
{{scroll box |content= }}
NOTE: An optional width variable can be used to control the width of the scroll box:
{{scroll box |width=75% <!-- Should be a relative value! --> |height=10em <!-- Should be an absolute value! 1 line = 2em approx. --> |background= |content= }}
Example
Code
{{scroll box |background=#A0CFEC |content= *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah }}
Result
|
Alternative code
{{scroll box| *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah }}
Result
|