{"id":178801,"date":"2014-08-14T14:13:24","date_gmt":"2014-08-14T21:13:24","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=178801"},"modified":"2014-08-14T14:13:24","modified_gmt":"2014-08-14T21:13:24","slug":"column-rule","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/c\/column-rule\/","title":{"rendered":"column-rule"},"content":{"rendered":"

To make columns distinct, you can add a vertical line between each column. The line sits in the center of the column gap. If you\u2019ve ever styled border<\/code>, then you are ready to style column-rule<\/code>.<\/p>\n

.container {\r\n  -webkit-columns: 2 400px;\r\n     -moz-columns: 2 400px;\r\n          columns: 2 400px;\r\n  -webkit-column-rule: 1px solid black;\r\n     -moz-column-rule: 1px solid black;\r\n          column-rule: 1px solid black;\r\n}<\/code><\/pre>\n

The property is shorthand for column-rule-width<\/code>, column-rule-style<\/code>, and column-rule-color<\/code>, which is the same pattern as border<\/code> and accepts the same values.<\/p>\n

-webkit-column-rule-width: 1px;\r\n   -moz-column-rule-width: 1px;\r\n        column-rule-width: 1px;\r\n-webkit-column-rule-style: solid;\r\n   -moz-column-rule-style: solid;\r\n        column-rule-style: solid;\r\n-webkit-column-rule-color: black;\r\n   -moz-column-rule-color: black;\r\n        column-rule-color: black;<\/code><\/pre>\n

column-rule-width<\/code> can be a length like 3px<\/code> or a keyword value like thin<\/code>.<\/p>\n

column-rule-style<\/code> can be any of the border-style<\/code> values like solid<\/code>, dotted<\/code>, and dashed<\/code>.<\/p>\n

column-rule-color<\/code> can be any color value.<\/p>\n