CSS Property column-rule-color








The column-rule-color property sets the color of the rule(line) between columns.

Summary

Initial value
element color
Inherited
no
CSS Version
CSS3
JavaScript syntax
object.style.columnRuleColor="red"
Animatable
Yes

CSS Syntax

column-rule-color: color|initial|inherit;

Property Values

color
sets the color of the rule.
initial
sets to default value
inherit
Inherits this property from its parent element

Browser compatibility

column-rule-color Yes 11.0 Yes Yes Yes




Example

<!DOCTYPE html>
<html>
<head>
<style> 
.newspaper {<!-- ww w.j  a v a  2 s.co  m-->
    /* Chrome, Safari, Opera */
    -webkit-column-count: 3;
    -webkit-column-gap: 40px;
    -webkit-column-rule-style: outset;
    -webkit-column-rule-color: blue;

    /* Firefox */
    -moz-column-count: 3;
    -moz-column-gap: 40px;
    -moz-column-rule-style: outset;
    -moz-column-rule-color: blue;

    column-count: 3;
    column-gap: 40px;
    column-rule-style: outset;
    column-rule-color: blue;
}
</style>
</head>
<body>

<div class="newspaper">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, 
sed diam nonummy nibh euismod tincidunt ut laoreet dolore 
magna aliquam erat volutpat. Ut wisi enim ad minim veniam, 
quis nostrud exerci tation ullamcorper suscipit lobortis 
nisl ut aliquip ex ea commodo consequat. Duis autem vel 
eum iriure dolor in hendrerit in vulputate velit esse 
molestie consequat, vel illum dolore eu feugiat nulla 
facilisis at vero eros et accumsan et iusto odio dignissim 
qui blandit praesent luptatum zzril delenit augue duis 
dolore te feugait nulla facilisi. Nam liber tempor cum 
soluta nobis eleifend option congue nihil imperdiet doming 
id quod mazim placerat facer possim assum. Typi non habent 
claritatem insitam; est usus legentis in iis qui facit 
eorum claritatem. Investigationes demonstraverunt lectores 
legere me lius quod ii legunt saepius.
</div>

</body>
</html>

Click to view the demo