शैली कॉलम संपत्ति
उदाहरण
पाठ को तीन स्तंभों में विभाजित करें, प्रत्येक में न्यूनतम 100 पिक्सेल:
document.getElementById("myDIV").style.columns = "100px 3";
परिभाषा और उपयोग
कॉलम प्रॉपर्टी कॉलमविड्थ और कॉलमकाउंट सेट करने के लिए एक शॉर्टहैंड प्रॉपर्टी है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
वाक्य - विन्यास
कॉलम संपत्ति लौटाएं:
object.style.columns
कॉलम संपत्ति सेट करें:
object.style.columns = "auto|column-width column-count|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of columns |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | कार कार |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की कॉलम संपत्ति का प्रतिनिधित्व करता है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
CSS3 ट्यूटोरियल: CSS3 एकाधिक कॉलम
सीएसएस संदर्भ: कॉलम संपत्ति
❮ स्टाइल ऑब्जेक्ट