CSS3 columns プロパティ
完全な CSS3 リファレンス
例
Specify the width and number of columns:
div
{
-webkit-columns:100px 3; /* Safari and Chrome */
columns:100px 3;
} |
Try it yourself »
More examples at the bottom of this page.
|
ブラウザ・サポート

columns property is only supported in Opera.
Safari and Chrome support an alternative, the -webkit-columns property.
定義と用法
columns property is a shorthand property for setting column-width and column-count.
| デフォルト値: |
auto auto |
| 継承: |
no |
| バージョン: |
CSS3 |
| JavaScript構文: |
object.style.columns="100px 3" |
構文
| columns: column-width column-count; |
 |
Try it Yourself - Examples |
Column-count
Divide the text in a div element into three columns.
Column-gap
Divide the text in a div element into three columns, and specify a 30 pixels gap
between the columns.
Column-rule
Specify the width, style and color of the rule between columns.
関連ページ
CSS3 チュートリアル: CSS3 Multiple Columns
完全な CSS3 リファレンス
|