CSS ग्रिड-टेम्पलेट-पंक्तियाँ संपत्ति
उदाहरण
पंक्ति-आकार (ऊंचाई) निर्दिष्ट करें:
.grid-container {
display: grid;
grid-template-rows:
100px 300px;
}
परिभाषा और उपयोग
गुण ग्रिड लेआउट में पंक्तियों की grid-template-rows
संख्या (और ऊँचाई) निर्दिष्ट करता है।
मान एक स्थान से अलग की गई सूची है, जहां प्रत्येक मान संबंधित पंक्ति की ऊंचाई निर्दिष्ट करता है।
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | हां। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS ग्रिड लेआउट मॉड्यूल स्तर 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.gridTemplateRows="50px 200px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
grid-template-rows | 57 | 16 | 52 | 10 | 44 |
सीएसएस सिंटेक्स
grid-template-rows: none|auto|max-content|min-content|length|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
none | No size is set. Rows are created if needed | |
auto | The size of the rows is determined by the size of the container, and on the size of the content of the items 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 smallest item in the row | |
length | Sets the size of the rows, by using a legal length value. Read about length units |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस ग्रिड लेआउट
CSS संदर्भ: ग्रिड-कॉलम गुण
CSS संदर्भ: ग्रिड-टेम्पलेट गुण