column-rule-style

column-rule-styleCSS のプロパティで、段組みレイアウトで段の間に引かれる線 (段間罫) のスタイルを設定します。

試してみましょう

構文

css
/* <'border-style'> の値 */
column-rule-style: none;
column-rule-style: hidden;
column-rule-style: dotted;
column-rule-style: dashed;
column-rule-style: solid;
column-rule-style: double;
column-rule-style: groove;
column-rule-style: ridge;
column-rule-style: inset;
column-rule-style: outset;

/* グローバル値 */
column-rule-style: inherit;
column-rule-style: initial;
column-rule-style: revert;
column-rule-style: unset;

column-rule-style プロパティは、単一の <'border-style'> 値で指定します。

<'border-style'>

border-style で定義されているキーワードで、段間罫のスタイルを指定します。スタイルは collasped の境界線モデルで解釈されます。

公式定義

初期値none
適用対象段組み要素
継承なし
計算値指定通り
アニメーションの種類離散値

形式文法

column-rule-style = 
<line-style>

<line-style> =
none |
hidden |
dotted |
dashed |
solid |
double |
groove |
ridge |
inset |
outset

破線の段間罫を設定

HTML

html
<p>
  This is a bunch of text split into three columns. The `column-rule-style`
  property is used to change the style of the line that is drawn between
  columns. Don't you think that's wonderful?
</p>

CSS

css
p {
  column-count: 3;
  column-rule-style: dashed;
}

結果

仕様書

Specification
CSS Multi-column Layout Module Level 1
# crs

ブラウザーの互換性

BCD tables only load in the browser

関連情報