सीएसएस ट्यूटोरियल

सीएसएस होम सीएसएस परिचय सीएसएस सिंटेक्स सीएसएस चयनकर्ता सीएसएस कैसे करें सीएसएस टिप्पणियाँ सीएसएस रंग सीएसएस पृष्ठभूमि सीएसएस बॉर्डर्स सीएसएस मार्जिन सीएसएस पैडिंग सीएसएस ऊंचाई/चौड़ाई सीएसएस बॉक्स मॉडल सीएसएस रूपरेखा सीएसएस पाठ सीएसएस फ़ॉन्ट्स सीएसएस प्रतीक सीएसएस लिंक सीएसएस सूचियां सीएसएस टेबल्स सीएसएस प्रदर्शन सीएसएस अधिकतम-चौड़ाई सीएसएस स्थिति सीएसएस जेड-इंडेक्स सीएसएस अतिप्रवाह सीएसएस फ्लोट सीएसएस इनलाइन-ब्लॉक सीएसएस संरेखित करें सीएसएस संयोजक सीएसएस छद्म वर्ग सीएसएस छद्म तत्व सीएसएस अस्पष्टता सीएसएस नेविगेशन बार सीएसएस ड्रॉपडाउन सीएसएस छवि गैलरी सीएसएस छवि स्प्राइट्स सीएसएस एटीआर चयनकर्ता सीएसएस फॉर्म सीएसएस काउंटर सीएसएस वेबसाइट लेआउट सीएसएस इकाइयां सीएसएस विशिष्टता सीएसएस !महत्वपूर्ण सीएसएस गणित कार्य

सीएसएस उन्नत

सीएसएस गोल कोनों सीएसएस सीमा छवियां सीएसएस पृष्ठभूमि सीएसएस रंग सीएसएस रंग कीवर्ड सीएसएस ग्रेडिएंट सीएसएस छाया सीएसएस पाठ प्रभाव सीएसएस वेब फ़ॉन्ट्स CSS 2D ट्रांसफ़ॉर्म CSS 3D ट्रांसफ़ॉर्म सीएसएस संक्रमण सीएसएस एनिमेशन सीएसएस टूलटिप्स सीएसएस शैली छवियां सीएसएस छवि प्रतिबिंब CSS ऑब्जेक्ट-फिट सीएसएस वस्तु-स्थिति सीएसएस मास्किंग सीएसएस बटन सीएसएस पेजिनेशन सीएसएस एकाधिक कॉलम सीएसएस यूजर इंटरफेस सीएसएस चर सीएसएस बॉक्स साइजिंग सीएसएस मीडिया प्रश्न सीएसएस एमक्यू उदाहरण सीएसएस फ्लेक्सबॉक्स

सीएसएस उत्तरदायी

आरडब्ल्यूडी परिचय आरडब्ल्यूडी व्यूपोर्ट आरडब्ल्यूडी ग्रिड व्यू आरडब्ल्यूडी मीडिया प्रश्न आरडब्ल्यूडी छवियां आरडब्ल्यूडी वीडियो आरडब्ल्यूडी फ्रेमवर्क आरडब्ल्यूडी टेम्पलेट्स

सीएसएस ग्रिड

ग्रिड परिचय ग्रिड कंटेनर ग्रिड आइटम

सीएसएस एसएएसएस

एसएएसएस ट्यूटोरियल

सीएसएस उदाहरण

सीएसएस टेम्पलेट्स सीएसएस उदाहरण सीएसएस प्रश्नोत्तरी सीएसएस अभ्यास सीएसएस प्रमाणपत्र

सीएसएस संदर्भ

सीएसएस संदर्भ सीएसएस चयनकर्ता सीएसएस कार्य सीएसएस संदर्भ कर्ण सीएसएस वेब सुरक्षित फ़ॉन्ट्स सीएसएस एनिमेटेबल सीएसएस इकाइयां सीएसएस पीएक्स-ईएम कनवर्टर सीएसएस रंग सीएसएस रंग मान सीएसएस डिफ़ॉल्ट मान सीएसएस ब्राउज़र समर्थन

सीएसएस ग्रिड लेआउट मॉड्यूल


हैडर

मेन्यू

मुख्य

सही

फ़ुटबाल


जाली का नक्शा

CSS ग्रिड लेआउट मॉड्यूल पंक्तियों और स्तंभों के साथ एक ग्रिड-आधारित लेआउट सिस्टम प्रदान करता है, जिससे फ़्लोट्स और पोजिशनिंग का उपयोग किए बिना वेब पेजों को डिज़ाइन करना आसान हो जाता है।


ब्राउज़र समर्थन

ग्रिड गुण सभी आधुनिक ब्राउज़रों में समर्थित हैं।

57.0 16.0 52.0 10 44

ग्रिड तत्व

ग्रिड लेआउट में एक या अधिक चाइल्ड तत्वों के साथ एक मूल तत्व होता है।

उदाहरण

<div class="grid-container">
  <div class="grid-item">1</div>
  <div class="grid-item">2</div>
  <div class="grid-item">3</div>
  <div class="grid-item">4</div>
  <div class="grid-item">5</div>
  <div class="grid-item">6</div>
  <div class="grid-item">7</div>
  <div class="grid-item">8</div>
  <div class="grid-item">9</div>
</div>

1

2

3

4

5

6

7

8

9


संपत्ति प्रदर्शित करें

एक HTML तत्व एक ग्रिड कंटेनर बन जाता है जब उसकी displayसंपत्ति gridया पर सेट होती है inline-grid

उदाहरण

.grid-container {
  display: grid;
}

उदाहरण

.grid-container {
  display: inline-grid;
}

ग्रिड कंटेनर के सभी प्रत्यक्ष बच्चे स्वचालित रूप से ग्रिड आइटम बन जाते हैं ।


ग्रिड कॉलम

ग्रिड मदों की लंबवत रेखाओं को कॉलम कहा जाता है ।


ग्रिड पंक्तियाँ

ग्रिड मदों की क्षैतिज रेखाओं को पंक्तियाँ कहा जाता है ।


ग्रिड अंतराल

प्रत्येक कॉलम/पंक्ति के बीच के रिक्त स्थान को गैप कहा जाता है ।

आप निम्न में से किसी एक गुण का उपयोग करके अंतराल के आकार को समायोजित कर सकते हैं:

  • grid-column-gap
  • grid-row-gap
  • grid-gap

उदाहरण

grid-column-gapगुण स्तंभों के बीच का अंतर निर्धारित करता है :

.grid-container {
  display: grid;
  grid-column-gap: 50px;
}

उदाहरण

grid-row-gapसंपत्ति पंक्तियों के बीच का अंतर निर्धारित करती है :

.grid-container {
  display: grid;
  grid-row-gap: 50px;
}

उदाहरण

संपत्ति और संपत्तियों के लिए grid-gapएक आशुलिपि संपत्ति है :grid-row-gapgrid-column-gap

.grid-container {
  display: grid;
  grid-gap: 50px 100px;
}

उदाहरण

संपत्ति का grid-gapउपयोग पंक्ति अंतराल और स्तंभ अंतराल दोनों को एक मान में सेट करने के लिए भी किया जा सकता है:

.grid-container {
  display: grid;
  grid-gap: 50px;
}


ग्रिड लाइन्स

स्तम्भों के बीच की रेखाओं को स्तम्भ रेखाएँ कहते हैं ।

पंक्तियों के बीच की रेखाओं को पंक्ति रेखाएँ कहते हैं ।

ग्रिड आइटम को ग्रिड कंटेनर में रखते समय लाइन नंबर देखें:

उदाहरण

कॉलम लाइन 1 पर एक ग्रिड आइटम रखें और इसे कॉलम लाइन 3 पर समाप्त होने दें:

.item1 {
  grid-column-start: 1;
  grid-column-end: 3;
}

उदाहरण

पंक्ति पंक्ति 1 पर एक ग्रिड आइटम रखें और इसे पंक्ति पंक्ति 3 पर समाप्त होने दें:

.item1 {
  grid-row-start: 1;
  grid-row-end: 3;
}


सभी सीएसएस ग्रिड गुण

Property Description
column-gap Specifies the gap between the columns
gap A shorthand property for the row-gap and the column-gap properties
grid A shorthand property for the grid-template-rows, grid-template-columns, grid-template-areas, grid-auto-rows, grid-auto-columns, and the grid-auto-flow properties
grid-area Either specifies a name for the grid item, or this property is a shorthand property for the grid-row-start, grid-column-start, grid-row-end, and grid-column-end properties
grid-auto-columns Specifies a default column size
grid-auto-flow Specifies how auto-placed items are inserted in the grid
grid-auto-rows Specifies a default row size
grid-column A shorthand property for the grid-column-start and the grid-column-end properties
grid-column-end Specifies where to end the grid item
grid-column-gap Specifies the size of the gap between columns
grid-column-start Specifies where to start the grid item
grid-gap A shorthand property for the grid-row-gap and grid-column-gap properties
grid-row A shorthand property for the grid-row-start and the grid-row-end properties
grid-row-end Specifies where to end the grid item
grid-row-gap Specifies the size of the gap between rows
grid-row-start Specifies where to start the grid item
grid-template A shorthand property for the grid-template-rows, grid-template-columns and grid-areas properties
grid-template-areas Specifies how to display columns and rows, using named grid items
grid-template-columns Specifies the size of the columns, and how many columns in a grid layout
grid-template-rows Specifies the size of the rows in a grid layout
row-gap Specifies the gap between the grid rows