कॉलम के बीच गैप सेट करने के लिए, columnGap का उपयोग करें संपत्ति।
उदाहरण
जावास्क्रिप्ट के साथ कॉलम के बीच गैप सेट करने का तरीका जानने के लिए आप निम्न कोड को चलाने का प्रयास कर सकते हैं -
<!DOCTYPE html> <html> <body> <p>Click below to create 4 columns and set gap of 30px</p> <button onclick="display()">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.columnCount = "4"; document.getElementById("myID").style.columnGap = "30px"; } </script> </body> </html>