Template:Div col end
Jump to navigation
Jump to search
Columns are currently supported only by newer versions of Gecko-based browsers (such as Mozilla Firefox) and WebKit-based browsers (such as Google Chrome and Safari). All versions of Internet Explorer through to version 9 and Opera through to version 11.0 do not support columns. See here for more information. |
Internet Explorer |
Firefox | Safari | Chrome | Opera |
---|---|---|---|---|
≤ 9 | ≤ 1.0 | ≤ 2 | N/A | ≤ 11.0 |
10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
This template, together with {{Div col end}}
, is used to make a list into columns, with the option of specifying a smaller font. 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:
- column-count (for CSS3 compliant browsers; see CSS3 module: Multi-column layout)
- -moz-column-count (for Mozilla/Gecko based browsers such as Firefox)
- -webkit-column-count (for WebKit based browsers such as Safari and Google Chrome)
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|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col||10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col|rules=yes}}
* 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]{{Multicol}}
The above documentation is transcluded from Template:Div col/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Subpages of this template. |