Open In App

CSS column-rule-style Property

The column-rule-style property in CSS is used to set the style of the column rule between the columns on 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:

Example 1: Here is the example of the above-explained property.






<!DOCTYPE html>
<html>
<head>
    <title>
        CSS | column-rule-style Property
    </title>
    <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>
</head>
 
<body>
    <h1 style="text-align:center;color:green;">
        GeeksforGeeks
    </h1>
 
    <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>
</body>
</html>

Output: Example 2: Here is the example of the above-explained property.




<!DOCTYPE html>
<html>
<head>
    <title>
        CSS | column-rule-style Property
    </title>
    <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>
</head>
 
<body>
    <h1 style="text-align:center;color:green">
        GeeksforGeeks
    </h1>
 
    <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>
</body>
</html>

Output: Example 3: Here is the example of the above-explained property.




<!DOCTYPE html>
<html>
<head>
    <title>
        CSS | column-rule-style Property
    </title>
    <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>
</head>
 
<body>
    <h1 style="text-align:center;color:green">
        GeeksforGeeks
    </h1>
 
    <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>
</body>
</html>

Output: Supported browsers: The browser supported by column-rule-style property are listed below:


Article Tags :