Difference between revisions of "Template:Scrollbox"

(temp mod)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="border:1px solid #AAA; height:{{{height|500px}}}; margin:3px 0; overflow:auto; padding-left:0.5em; width:{{{width|99%}}}; -webkit-border-top-left-radius:0.5em; -moz-border-radius-topleft:0.5em">
+
<div style="border:1px solid #AAA; height:{{{height|300px}}}; margin:3px 0; overflow:auto; padding-left:0.5em; width:{{{width|99%}}}; -webkit-border-top-left-radius:0.5em; -moz-border-radius-topleft:0.5em">
 
{{{1}}}
 
{{{1}}}
 
</div>
 
</div>
 
<noinclude>{{scrollbox/doc}}</noinclude>
 
<noinclude>{{scrollbox/doc}}</noinclude>

Latest revision as of 17:14, 12 July 2011

{{{1}}}

Usage[edit]

{{scrollbox|
}}

Example[edit]

{{scrollbox|
* Lorem 
* ipsum 
* dolor 
* sit 
* amet, 
* consectetur 
* adipisicing 
* elit
* sed 
* do 
* eiusmod 
* tempor 
* incididunt 
* ut 
* labore 
* et 
* dolore 
* magna 
* aliqua.
}}

Will display as:

  • Lorem
  • ipsum
  • dolor
  • sit
  • amet,
  • consectetur
  • adipisicing
  • elit
  • sed
  • do
  • eiusmod
  • tempor
  • incididunt
  • ut
  • labore
  • et
  • dolore
  • magna
  • aliqua.


Advanced usage[edit]

{{scrollbox}} has two optional parameters. You can set the height and width of the box.

{{scrollbox|height=200px|width=50%|
* Lorem 
* ipsum 
* dolor 
* sit 
* amet, 
* consectetur 
* adipisicing 
* elit
* sed 
* do 
* eiusmod 
* tempor 
* incididunt 
* ut 
* labore 
* et 
* dolore 
* magna 
* aliqua.
}}

Will display as:

  • Lorem
  • ipsum
  • dolor
  • sit
  • amet,
  • consectetur
  • adipisicing
  • elit
  • sed
  • do
  • eiusmod
  • tempor
  • incididunt
  • ut
  • labore
  • et
  • dolore
  • magna
  • aliqua.