CSS ग्रिड-ऑटो-पंक्तियाँ संपत्ति
उदाहरण
ग्रिड में पंक्तियों के लिए डिफ़ॉल्ट आकार सेट करें:
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
परिभाषा और उपयोग
grid-auto-rows
गुण ग्रिड कंटेनर में पंक्तियों के लिए एक आकार निर्धारित करता है ।
यह गुण केवल उन पंक्तियों को प्रभावित करता है जिनका आकार सेट नहीं है।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | हां। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS ग्रिड लेआउट मॉड्यूल स्तर 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.gridAutoRows="60px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
सीएसएस सिंटेक्स
grid-auto-rows: auto|max-content|min-content|length;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the rows is determined by the size of the largest item in the row | |
max-content | Sets the size of each row to depend on the largest item in the row | |
min-content | Sets the size of each row to depend on the largest item in the row | |
length | Sets the size of the rows, by using a legal length value. Read about length units |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस ग्रिड लेआउट
CSS संदर्भ: ग्रिड-ऑटो-कॉलम गुण