User:Cuckooman4/Scrollboxtop/doc

Makes a scrollable box.

Syntax

edit
{{User:Cuckooman4/Scrollboxtop
  |h = height
  |w = width
  |o = CSS overflow
  |b = CSS border
  |p = CSS padding
  |bg = background color
}}

Text in box

</DIV>

All parameters are optional - default settings:

  • h = 200px
  • w = 300px
  • o = scroll
  • b = none
  • p = 5px
  • bg = #F9F9F9

Write "{{User:Cuckooman4/Scrollboxtop}}" and, (optional) define the parameters. Then write the text you want in the box, and end with "</DIV>".

Example

edit


text

text

text

text

text

text

text

text

text

text

text

text

text

{{User:Cuckooman4/Scrollboxtop
  |h = 200px
  |w = 100px
  |b = 2px solid #000000
}}

text

text

text

text

text

text

text

text

text

text

text

text

text

</DIV>

Source

edit
<DIV style="height:{{{h|200px}}}; width:{{{w|300px}}}; overflow-y:{{{o|scroll}}}; border:{{{b|none}}}; padding:{{{p|5px}}}; background-color:{{{bg|transparent}}};">