Jump to content

Template:Column-gap

Permanently protected template
From Meta, a Wikimedia project coordination wiki
Template documentation


Usage

This template generates the equivalent of CSS3 style property column-gap [1]

Use it in CSS style properties to set the minimum and maximum width of gaps between rendered columns of a multi-column parent element. Gaps will be split into two equal parts to generate additional right and left margins of the columns to separate respectively on the left and on the right.

Useful to separate columns of text, as it facilitates their reading on wide screens (a width of 1em is generally enough for the gap, and column widths between 18em for narrow lists of terms, and 36em for paragraphs will generally fit well). Gaps with the specified width will be created only between columns, but not to the left of the left-most column, and not to the right of the right-most column. You can safely avoid adding gaps if the content is already indented (such as ordered numbered lists, unordered bulleted lists, definition lists).

Example

  • {{column-gap|1em}} gives:
    column-gap:1em;

References

  1. CSS Multi-column Layout Module, W3C specification.

See also