Deleted comma and removed first person (#35034)
This commit is contained in:
parent
99ac0b6938
commit
db63a354ee
@ -11,7 +11,7 @@ When you used <code>grid-template-columns</code> and <code>grid-template-rows</c
|
||||
Lets say you want a grid with 100 rows of the same height. It isn't very practical to insert 100 values individually. Fortunately, there's a better way - by using the <code>repeat</code> function to specify the number of times you want your column or row to be repeated, followed by a comma and the value you want to repeat.
|
||||
Here's an example that would create the 100 row grid, each row at 50px tall.
|
||||
<blockquote>grid-template-rows: repeat(100, 50px);</blockquote>
|
||||
You can also repeat multiple values with the repeat function, and insert the function amongst other values when defining a grid structure. Here's what I mean:
|
||||
You can also repeat multiple values with the repeat function and insert the function amongst other values when defining a grid structure. Here's what that looks like:
|
||||
<blockquote>grid-template-columns: repeat(2, 1fr 50px) 20px;</blockquote>
|
||||
This translates to:
|
||||
<blockquote>grid-template-columns: 1fr 50px 1fr 50px 20px;</blockquote>
|
||||
|
Loading…
x
Reference in New Issue
Block a user