Difference between revisions of "Template:Div col/doc"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(tidy)
imported>TheDJ
Line 5: Line 5:
 
This template can create multiple columns in [[web browser]]s which support one of the following [[CSS]] properties:
 
This template can create multiple columns in [[web browser]]s which support one of the following [[CSS]] properties:
 
* ''-moz-column-count'' (for [[Mozilla application framework|Mozilla]]/[[Gecko (layout engine)|Gecko]] based browsers such as [[Firefox]])
 
* ''-moz-column-count'' (for [[Mozilla application framework|Mozilla]]/[[Gecko (layout engine)|Gecko]] based browsers such as [[Firefox]])
* ''-webkit-column-count'' (for [[WebKit]] based browsers such as [[Safari (web browser)|Safari]])
+
* ''-webkit-column-count'' (for [[WebKit]] based browsers such as [[Safari (web browser)|Safari]] and [[Google Chrome]])
 
* ''column-count'' (for [[Cascading Style Sheets#CSS 3|CSS3]] compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
 
* ''column-count'' (for [[Cascading Style Sheets#CSS 3|CSS3]] compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
  

Revision as of 12:28, 14 September 2009

This template is used to make a list into columns, with the option of specifying a smaller font.

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

Therefore, the template does not work in browsers such as Internet Explorer and Opera (see Template:Reflist #Browser support).

Usage

cols=
Specifies the number of columns. Defaults to 2.
small=yes
Specifies small font size (80%). Defaults to "no".

Example

{{Div col}}
* a
* b
* c
* d
{{Div col end}}
Produces
  • a
  • b
  • c
  • d

See also