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

CSS3 column-gap プロパティ

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

Specify a 40 pixels gap between the columns:

div
{
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
column-gap:40px;
}

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

ブラウザ・サポート

Internet Explorer Firefox Opera Google Chrome Safari

column-gap property is only supported in Opera.

Firefox supports an alternative, the -moz-column-gap property.

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


定義と用法

column-gap property specifies the gap between the columns.

注: If there is a column-rule between columns, it will appear in the middle of the gap.

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


構文

column-count: length|normal;

説明
length A specified length that will set the gap between the columns
normal Specifies a normal gap between the columns. W3C suggests a value of 1em


Examples

Try it Yourself - Examples

Column-count
Divide the text in a div element into three columns.

Column-rule
Specify the width, style and color of the rule between columns.


関連ページ

CSS3 チュートリアル: CSS3 Multiple Columns


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