CSS3 column-gap property
Examples
Specifies the gap 40 between the pixel columns:
div
{
column-gap: 40px;
-moz-column-gap: 40px; / * Firefox * /
-webkit-column-gap: 40px; / * Safari and Chrome * /
}
{
column-gap: 40px;
-moz-column-gap: 40px; / * Firefox * /
-webkit-column-gap: 40px; / * Safari and Chrome * /
}
try it"
In the bottom of this page for more examples.
Browser Support
属性 | |||||
---|---|---|---|---|---|
column-gap | 50.0 4.0 -webkit- |
10.0 | 2.0 -moz- | 9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
Attribute definitions and instructions
The gap between the column-gap property specifies the columns.
NOTE: If you specify the distance rules between columns, it will take the average.
Defaults: | normal |
---|---|
inherit: | no |
version: | CSS3 |
JavaScript syntax: | object .style.columnGap = "40px" |
grammar
column-gap:length|normal;
值 | 描述 |
---|---|
length | 一个指定的长度,将设置列之间的差距 |
normal | 指定一个列之间的普通差距。 W3C建议1EM值 |
More examples
Column-count
Text div element into three columns.
Column-rule
Rules specify between columns: width, style and color.
related articles
CSS3 tutorial: CSS3 Multiple the Columns