columnRuleColor का प्रयोग करें नियमों का रंग निर्धारित करने के लिए जावास्क्रिप्ट में संपत्ति। आप जावास्क्रिप्ट के साथ कॉलम के बीच नियम का रंग सेट करने के लिए निम्न कोड चलाने का प्रयास कर सकते हैं -
उदाहरण
<!DOCTYPE html> <html> <head> <style> #myID { column-count: 4; column-rule: 4px outset yellow; } </style> </head> <body> <p>Click below to change color</p> <button onclick="display()">Change Color between Columns</button> <div id="myID"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> <script> function display() { document.getElementById("myID").style.columnRuleColor = "red"; } </script> </body> </html>