マルチカラム
column-countプロパティ
カラムを作りたい要素の一つ上の要素に横のカラム数を指定すると、縦並びのグリッドが簡単につくれる。
.column {
column-count: 3; /*3カラム*/
column-count: 5; /*5カラム*/
}
.item {
display: inline-block;
width: 100%;
}
カラムを作りたい要素の一つ上の要素に横のカラム数を指定すると、縦並びのグリッドが簡単につくれる。
.column {
column-count: 3; /*3カラム*/
column-count: 5; /*5カラム*/
}
.item {
display: inline-block;
width: 100%;
}