ホーム HTML CSS XML JAVASCRIPT   PHP SQL MORE...   リファレンス 事例集    

CSS3 column-width プロパティ

CSS3 Reference 完全な CSS3 リファレンス

Specify the width of the columns:

div
{
-webkit-column-width:100px; /* Safari and Chrome */
column-width:100px;
}

Try it yourself »
More examples at the bottom of this page.

ブラウザ・サポート

Internet Explorer Firefox Opera Google Chrome Safari

column-width property is only supported in Opera.

Safari and Chrome support an alternative, the -webkit-column-width property.


定義と用法

column-width property specifies the width of the columns.

デフォルト値: auto
継承: no
バージョン: CSS3
JavaScript構文: object.style.columnWidth="100px"


構文

column-width: auto|length;

説明
auto The column width will be determined by the browser
length A length that specifies the width of the columns


Examples

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 Reference 完全な CSS3 リファレンス