Template:Div col/doc

Div col, together with div col end, is used to make a list into columns. It automatically breaks each column into an equal space, meaning, for instance, it isn't necessary to work out the halfway point between two columns. The template also offers options to set a smaller (90%) font-size (yes), place vertical lines ("rules") between the columns (rules) and to add other custom styling (style).

Div col 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)

Usage

 * or first unnamed parameter : (Now deprecated, as colwidth below is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)) Specifies the number of columns (default 2).
 * colwidth or second unnamed parameter : Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Specified in any CSS unit, for instance in em, about the width of a capital "M", e.g,
 * rules : Adds vertical lines ("rules") between the columns if set to  or some CSS styling (e.g.  ).
 * gap : Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, . The default spacing is 1em.
 * style : CSS styling to apply to the columns.

Examples

 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * produces:


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * produces:


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * produces:


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * produces:


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h


 * produces:


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Redirects

 * (but not )
 * (but not )