Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Template:Div col end

From Appropedia
Jump to: navigation, search


[view] [edit] [history] [purge] Documentation icon Template documentation

This template is used to make a list into columns, with the option of specifying a smaller font. It has the advantage over other column templates (i.e. {{col-begin}}) that it automatically breaks each column to an equal space, so you do not manually have to find the "half way" point on two columns, for instance.

This template can create multiple columns in web browsers which support one of the following CSS properties:

Multiple columns are generated by using CSS3, thus only browsers that properly support the multi-column property will show multiple columns.

CSS3 multiple column layout
browser support
Internet
Explorer
Firefox Safari Chrome Opera
6 3 3.1 7 10.5
7 3.5 3.2 8 10.6
8 3.6 4 9 11
9 4 5 10 11.1
10

Usage[edit]

cols =
Specifies the number of columns. Defaults to 2 columns.
colwidth =
Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the cols= setting.
small =
Specifies small font size (90%) if set to yes.
style =
Specify any custom styling.

Examples[edit]

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|cols=3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

See also[edit]


Wikipedia
This page or section includes content from Wikipedia. The original article was at Template:Div col. The list of authors can be seen in the history for that page. As with Appropedia, the text of Wikipedia is available under the CC-BY-SA.