aboutsummaryrefslogtreecommitdiff
path: root/files/fa
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-13 17:16:08 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-13 17:16:08 -0500
commita5fcfafb665e96cae5d04dfba927db8dcdfd7f14 (patch)
tree8eda610157e718083f580c6b31b0e101c3cf0bbc /files/fa
parentba5d6f9610d6bb352eecfa3ded1bb99bc9892916 (diff)
downloadtranslated-content-a5fcfafb665e96cae5d04dfba927db8dcdfd7f14.tar.gz
translated-content-a5fcfafb665e96cae5d04dfba927db8dcdfd7f14.tar.bz2
translated-content-a5fcfafb665e96cae5d04dfba927db8dcdfd7f14.zip
2020-12-13
Diffstat (limited to 'files/fa')
-rw-r--r--files/fa/glossary/grid/index.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/files/fa/glossary/grid/index.html b/files/fa/glossary/grid/index.html
new file mode 100644
index 0000000000..1d77496989
--- /dev/null
+++ b/files/fa/glossary/grid/index.html
@@ -0,0 +1,77 @@
+---
+title: Grid
+slug: Glossary/Grid
+translation_of: Glossary/Grid
+---
+<p>A <em>CSS grid</em> i</p>
+
+
+
+
+
+
+
+<p><code>bnvbnvbngfid</code> value of the {{cssxref("display")}} property; you can define columns and rows on your grid using the {{cssxref("grid-template-rows")}} and {{cssxref("grid-template-columns")}} properties.</p>
+
+<p>The grid that you define using these properties is described as an <em>explicit grid</em>.</p>
+
+<p>If you place content outside of this explicit grid, or if you are relying on auto-placement and the grid algorithm needs to create additional row or column {{glossary("grid tracks", "tracks")}} to hold {{glossary("grid item", "grid items")}}, then extra tracks will be created in the implicit grid. The <em>implicit grid</em> is the grid created automatically due to content being added outside of the tracks defined.</p>
+
+<p>In the example below I have created an <em>explicit grid</em> of three columns and two rows. The <em>third</em> row on the grid is an <em>implicit grid</em> row track, formed due to their being more than the six items which fill the explicit tracks.</p>
+
+<div id="example">
+<div class="hidden">
+<pre class="brush: css notranslate">* {box-sizing: border-box;}
+
+.wrapper {
+ border: 2px solid #f76707;
+ border-radius: 5px;
+ background-color: #fff4e6;
+}
+
+.wrapper &gt; div {
+ border: 2px solid #ffa94d;
+ border-radius: 5px;
+ background-color: #ffd8a8;
+ padding: 1em;
+ color: #d9480f;
+}
+</pre>
+</div>
+
+<pre class="brush: css notranslate">.wrapper {
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+ grid-template-rows: 100px 100px;
+}
+</pre>
+
+<pre class="brush: html notranslate">&lt;div class="wrapper"&gt;
+ &lt;div&gt;One&lt;/div&gt;
+ &lt;div&gt;Two&lt;/div&gt;
+ &lt;div&gt;Three&lt;/div&gt;
+ &lt;div&gt;Four&lt;/div&gt;
+ &lt;div&gt;Five&lt;/div&gt;
+ &lt;div&gt;Six&lt;/div&gt;
+ &lt;div&gt;Seven&lt;/div&gt;
+ &lt;div&gt;Eight&lt;/div&gt;
+&lt;/div&gt;
+</pre>
+</div>
+
+<p>{{ EmbedLiveSample('example', '500', '330') }}</p>
+
+<section class="Quick_links" id="Quick_Links">
+<ol>
+ <li>CSS Grid Layout Guide:<br>
+ <em><a href="/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout">Basic concepts of grid layout</a></em></li>
+ <li>Property reference
+ <ol>
+ <li>{{cssxref("grid-template-columns")}}</li>
+ <li>{{cssxref("grid-template-rows")}}</li>
+ <li>{{cssxref("grid")}}</li>
+ <li>{{cssxref("grid-template")}}</li>
+ </ol>
+ </li>
+</ol>
+</section>