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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Add section describing how template works and how it won't work in some browsers such as Internet Explorer)
Line 23: Line 23:
 
* d
 
* d
 
{{Div col end}}
 
{{Div col end}}
 +
 +
==Technical details==
 +
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]])
 +
* ''-webkit-column-count'' (for [[WebKit]] based browsers such as [[Safari (web browser)|Safari]])
 +
* ''column-count'' (for [[Cascading Style Sheets#CSS 3|CSS3]] compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
 +
 +
Therefore, the template does not work in browsers such as [[Internet Explorer]] and [[Opera (web browser)|Opera]] (see [[Template:Reflist #Browser support]]).
  
 
==See also==
 
==See also==

Revision as of 04:38, 3 October 2008

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

Usage

Parameters

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

Technical details

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).

See also