CSS3 column-ruleプロパティ
例
列間のルールを指定:幅、スタイル、色:
div
{
column-rule:3px outset #ff00ff;
-moz-column-rule:3px outset #ff00ff; /* Firefox */
-webkit-column-rule:3px outset #ff00ff; /* Safari and Chrome */
}
{
column-rule:3px outset #ff00ff;
-moz-column-rule:3px outset #ff00ff; /* Firefox */
-webkit-column-rule:3px outset #ff00ff; /* Safari and Chrome */
}
試してみる »
このページの下部に、さらに多くの例があります。
ブラウザサポート
表内の数字は、そのプロパティをサポートする最初のブラウザのバージョン番号を示します。
-webkit-、-ms- または -moz- の前にある数字は、その接頭辞付きプロパティをサポートする最初のブラウザのバージョン番号です。
| プロパティ | |||||
|---|---|---|---|---|---|
| column-rule | 50.0 4.0 -webkit- |
10.0 | 2.0 -moz- | 9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
プロパティの定義と使用説明
column-rule プロパティ
column-rule プロパティは、すべての column-rule-* プロパティを設定するショートハンドプロパティです。column-rule プロパティは、列間の幅、スタイル、色を設定します。
| デフォルト値: | medium none black |
|---|---|
| 継承: | no |
| バージョン: | CSS3 |
| JavaScript 構文: | object.style.columnRule="3px outset #ff00ff" |
構文
column-rule: column-rule-width column-rule-style column-rule-color;
| 值 | 説明 |
|---|---|
| column-rule-width | 列間の幅のルールを設定します。 |
| column-rule-style | 列間のスタイルルールを設定します。 |
| column-rule-color | 列間の色のルールを設定します。 |
その他の例
div要素のテキストを3列に分割します。
div要素のテキストを3列に分割し、列間のギャップに30ピクセルを指定します。
関連記事
CSS3 チュートリアル:CSS3 Multiple Columns
その他の拡張