The columns
property divides an element into columns.
Its value includes a min column width and a number of columns.
An element with three columns
that are at least 150 pixels wide.
<div style="columns: 150px 3">
Paul Gauguin was a French Post-Impressionist
artist. Unappreciated until after his death,
Gauguin is now recognized for his experimental
use of color and Synthetist style that were
distinct from Impressionism. Toward the end
of his life, he spent ten years in French
Polynesia. The paintings from this time
depict people or landscapes from that region.
His work was influential on the French
avant-garde and many modern artists, such
as Pablo Picasso and Henri Matisse, and he
is well known for his relationship with
Vincent and Theo van Gogh. Gauguin's art
became popular after his death, partially
from the efforts of dealer Ambroise Vollard,
who organized exhibitions of his work late in
his career and assisted in organizing two
important posthumous exhibitions in Paris.
</div>
The columns
property is a shorthand property for:
columns: auto | column-width column-count | initial | inherit;
Value | Description |
---|---|
auto |
Default. Both the column-width and column-count are set to auto
|
column-width | Column minimum width |
column-count | Maximum number of columns |
initial |
Sets the value to its default value. |
inherit |
Inherits the value from its parent element. |
An element divided into two columns, each one at least 100 pixels wide.
<div style="columns: 100px 2">
Paul Gauguin was a French Post-Impressionist
artist. Unappreciated until after his death,
Gauguin is now recognized for his experimental
use of color and Synthetist style that were
distinct from Impressionism. Toward the end
of his life, he spent ten years in French
Polynesia. The paintings from this time
depict people or landscapes from that region.
His work was influential on the French
avant-garde and many modern artists, such
as Pablo Picasso and Henri Matisse, and he
is well known for his relationship with
Vincent and Theo van Gogh. Gauguin's art
became popular after his death, partially
from the efforts of dealer Ambroise Vollard,
who organized exhibitions of his work late in
his career and assisted in organizing two
important posthumous exhibitions in Paris.
</div>
This table shows when columns
support started for each browser.
Chrome
|
50.0 | Apr 2016 |
Firefox
|
52.0 | Mar 2017 |
IE/Edge
|
10.0 | Sep 2012 |
Opera
|
37.0 | May 2016 |
Safari
|
9.0 | Sep 2015 |