CSS columnrulestyle Property (original) (raw)

CSS column-rule-style Property

Last Updated : 5 Jun, 2026

The column-rule-style property specifies the style of the line displayed between columns in a multi-column layout.

**Syntax:

column-rule-style: none | double | groove | ridge | inset | hidden | dotted | dashed | solid | outset | initial | inherit;

**Property Values: The column-rule-style property contains many values which are listed below:

Examples of column-rule-style Property

Different styles of separator lines can be displayed between columns using the column-rule-style property.

Example 1: A dashed line is displayed between the columns using the column-rule-style property.

html `

CSS | column-rule-style Property
<style>
    .geeks {

        /* Chrome, Safari, Opera */
        -webkit-column-count: 3;
        -webkit-column-gap: 35px;
        -moz-column-rule-style: dashed;

        /* Firefox */
        -moz-column-count: 3;
        -moz-column-gap: 35px;
        -moz-column-rule-style: dashed;

        column-count: 3;
        column-gap: 35px;
        column-rule-style: dashed;
    }
</style>

GeeksforGeeks

<div class="geeks">
    Prepare for the Recruitment drive of product
    based companies like Microsoft, Amazon, Adobe
    etc with a free online placement preparation
    course. The course focuses on various MCQ's
    & Coding question likely to be asked in the
    interviews & make your upcoming placement
    season efficient and successful.
</div>

`

Example 2: A double line is displayed between the columns using the column-rule-style property.

html `

CSS | column-rule-style Property
<style>
    .geeks {

        /* Chrome, Safari, Opera */
        -webkit-column-count: 3;
        -webkit-column-gap: 35px;
        -moz-column-rule-style: double;

        /* Firefox */
        -moz-column-count: 3;
        -moz-column-gap: 35px;
        -moz-column-rule-style: double;

        column-count: 3;
        column-gap: 35px;
        column-rule-style: double;
    }
</style>

GeeksforGeeks

<div class="geeks">
    Prepare for the Recruitment drive of product
    based companies like Microsoft, Amazon, Adobe
    etc with a free online placement preparation
    course. The course focuses on various MCQ's
    & Coding question likely to be asked in the
    interviews & make your upcoming placement
    season efficient and successful.
</div>

`

Example 3: A groove-style line is displayed between the columns using the column-rule-style property.

html `

CSS | column-rule-style Property
<style>
    .geeks {

        /* Chrome, Safari, Opera */
        -webkit-column-count: 3;
        -webkit-column-gap: 35px;
        -moz-column-rule-style: groove;

        /* Firefox */
        -moz-column-count: 3;
        -moz-column-gap: 35px;
        -moz-column-rule-style: groove;

        column-count: 3;
        column-gap: 35px;
        column-rule-style: groove;
    }
</style>

GeeksforGeeks

<div class="geeks">
    Prepare for the Recruitment drive of product
    based companies like Microsoft, Amazon, Adobe
    etc with a free online placement preparation
    course. The course focuses on various MCQ's
    & Coding question likely to be asked in the
    interviews & make your upcoming placement
    season efficient and successful.
</div>

`