Complete the code to create a grid container with three rows.
<div class="grid [1]"> <div>Row 1</div> <div>Row 2</div> <div>Row 3</div> </div>
grid-cols-3 which sets columns instead of rows.grid-flow-col which control flow direction.The class grid-rows-3 sets the grid to have three rows.
Complete the code to define a grid with four rows using Tailwind CSS.
<section class="grid [1] gap-4"> <div>Item 1</div> <div>Item 2</div> <div>Item 3</div> <div>Item 4</div> </section>
grid-cols-4 which sets columns instead of rows.The class grid-rows-4 sets the grid to have four rows.
Fix the error in the code to correctly define a grid with two rows.
<div class="grid [1] gap-2"> <div>First</div> <div>Second</div> </div>
grid-row-2 which is not a valid Tailwind class.grid-cols-2 which sets columns instead of rows.The correct class to define two rows is grid-rows-2. grid-row-2 is invalid.
Fill both blanks to create a grid with three rows and a gap between rows.
<div class="grid [1] [2]"> <div>One</div> <div>Two</div> <div>Three</div> </div>
grid-cols-3 instead of rows.grid-rows-3 sets three rows, and gap-2 adds spacing between rows and columns.
Fill all three blanks to create a grid with four rows, a gap of 6, and flow direction as rows.
<section class="grid [1] [2] [3]"> <div>A</div> <div>B</div> <div>C</div> <div>D</div> </section>
grid-cols-4 instead of rows.grid-rows-4 sets four rows, gap-6 adds spacing, and grid-flow-row ensures the grid flows by rows.
