column-rule शॉर्टहैंड प्रॉपर्टी
कॉलम रूल्स सेट करने के लिए column-rule शॉर्टहैंड प्रॉपर्टी का उपयोग करें, जो निम्न सेट करती है:
- column-rule-width: कॉलम के बीच रूल की चौड़ाई
- column-rule-style: कॉलम के बीच रूल की स्टाइल
- column-rule-color: कॉलम के बीच रूल का रंग
मान: column-rule: column-rule-width column-rule-style column-rule-color | initial | inherit;
उदाहरण 1: डॉटेड ऑरेंज रूल
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
column-count: 5;
-webkit-column-count: 5; -moz-column-count: 5;
-webkit-column-gap: normal; -moz-column-gap: normal; column-gap: normal;
-webkit-column-rule: 5px dotted orange; -moz-column-rule: 5px dotted orange; column-rule: 5px dotted orange;
}
</style>
</head>
<body>
<h1>PyTorch</h1>
<div class="demo">PyTorch is defined as an open source machine learning library for Python...</div>
</body>
</html>
आउटपुट

उदाहरण 2: अलग-अलग प्रॉपर्टीज़
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
column-count: 4; -webkit-column-count: 4; -moz-column-count: 4;
column-gap: normal; -webkit-column-gap: normal; -moz-column-gap: normal;
column-rule-width: 5px; -webkit-column-rule-width: 5px; -moz-column-rule-width: 5px;
column-rule-color: blue; -webkit-column-rule-color: blue; -moz-column-rule-color: blue;
column-rule-style: double; -webkit-column-rule-style: double; -moz-column-rule-style: double;
}
</style>
</head>
<body>
<h1>PyTorch</h1>
<div class="demo">PyTorch is defined as an open source machine learning library for Python...</div>
</body>
</html>
आउटपुट
