CSS Property: column-rule-width
[this page | pdf | back links]
The CSS (CSS3) column-rule-width property specifies the
width of any rule between columns.
Valid property values
(other than inherit
and initial) are:
Value
|
Description
|
length
|
Specified thickness as
a CSS length
|
medium
|
(default value). Medium
width
|
thick
|
Thick width
|
thin
|
Thin width
|
Default Value:
|
medium
|
JavaScript syntax:
|
e.g. object.style.columnRuleWidth="5px"
|
Inherited:
|
No
|
Animatable:
|
Yes
|
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head>
<style>
p {width: 200px; column-count: 2;
column-rule-color: red; column-rule-style: double}
p.x1 {column-rule-width: 10px;}
</style>
</head>
<body>
1. Element with default property<br>
<p>Some text that may be broken into several columns</p><br><br>
2. Element set using in-file HTML style
<p class="x1">Some text that may be broken into several columns</p><br><br>
3. Element set using JavaScript
<p id="x2">Some text that may be broken into several columns</p>
<script>
document.getElementById("x2").style.columnRuleWidth="10px";
</script>
</body>
</html>
|
FUNCTION THAT MAY ASSIST IN TESTING WHETHER FEATURE IS SUPPORTED:
function isSupportedCSSPropertyColumnRuleWidth() {
var x = document.createElement("DIV"); x.style.columnRuleWidth = "10px"; return (window.getComputedStyle(x, null).columnRuleWidth == "10px");
} |
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties