CSS कॉलम-फिल प्रॉपर्टी
उदाहरण
निर्दिष्ट करें कि कॉलम कैसे भरें:
.newspaper1 {
column-fill: auto;
}
.newspaper2 {
column-fill: balance;
}
नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।
परिभाषा और उपयोग
संपत्ति निर्दिष्ट करती है कि column-fill
कॉलम कैसे भरें, संतुलित या नहीं।
युक्ति: यदि आप किसी बहु-स्तंभ तत्व में ऊँचाई जोड़ते हैं, तो आप यह नियंत्रित कर सकते हैं कि सामग्री स्तंभों को कैसे भरती है। सामग्री को संतुलित या क्रमिक रूप से भरा जा सकता है।
डिफ़ॉल्ट मान: | संतुलन |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.columnFill="auto" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
नंबर के बाद -मोज़- पहले संस्करण को निर्दिष्ट करें जो उपसर्ग के साथ काम करता है।
Property | |||||
---|---|---|---|---|---|
column-fill | 50.0 | 10.0 | 52.0 13.0 -moz- |
10.0 7.0 -webkit- |
37.0 |
सीएसएस सिंटेक्स
column-fill: balance|auto|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
balance | Default value. Fills each column with about the same amount of content, but will not allow the columns to be taller than the height (so, columns might be shorter than the height as the browser distributes the content evenly horizontally) |
auto | Fills each column until it reaches the height, and do this until it runs out of content (so, this value will not necessarily fill all the columns nor fill them evenly) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
और ज्यादा उदाहरण
उदाहरण
टेक्स्ट को <div> तत्व में तीन कॉलम में विभाजित करें:
div
{
column-count: 3;
}
उदाहरण
स्तंभों के बीच 40 पिक्सेल का अंतर निर्दिष्ट करें:
div
{
column-gap: 40px;
}
उदाहरण
स्तंभों के बीच नियम की चौड़ाई, शैली और रंग निर्दिष्ट करें:
div
{
column-rule: 4px double #ff00ff;
}
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस मल्टीपल कॉलम्स
एचटीएमएल डोम संदर्भ: कॉलमफिल प्रॉपर्टी