Challenge - 5 Problems
Grid Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
How does
grid-auto-flow: row behave in Tailwind CSS?In Tailwind CSS, what is the effect of using
grid-auto-flow: row on grid item placement?Attempts:
2 left
💡 Hint
Think about how rows and columns are filled in a grid layout.
✗ Incorrect
The grid-auto-flow: row property makes grid items fill each row completely before starting a new row. This is the default behavior in CSS Grid and Tailwind's grid-flow-row utility.
📝 Syntax
intermediate2:00remaining
Which Tailwind class sets
grid-auto-flow: column?You want your grid items to fill columns first before moving to the next column. Which Tailwind CSS class achieves this?
Attempts:
2 left
💡 Hint
Tailwind uses short, descriptive class names for grid flow directions.
✗ Incorrect
The class grid-flow-col sets grid-auto-flow: column, making items fill columns first.
❓ rendering
advanced3:00remaining
What is the visual result of this Tailwind grid layout?
Given this HTML and Tailwind CSS, what will the grid items look like in the browser?
<div class="grid grid-cols-3 grid-flow-row auto-rows-fr gap-2"> <div class="bg-blue-500">1</div> <div class="bg-green-500">2</div> <div class="bg-red-500">3</div> <div class="bg-yellow-500">4</div> </div>
Tailwind
<div class="grid grid-cols-3 grid-flow-row auto-rows-fr gap-2"> <div class="bg-blue-500">1</div> <div class="bg-green-500">2</div> <div class="bg-red-500">3</div> <div class="bg-yellow-500">4</div> </div>
Attempts:
2 left
💡 Hint
Consider how 4 items fill 3 columns with row flow.
✗ Incorrect
The grid has 3 columns and grid-auto-flow: row. Items fill the first row with 3 boxes, then the 4th box starts a new row alone.
❓ selector
advanced2:00remaining
Which Tailwind class correctly places an item at column 2, row 3?
You want a grid item to start at column 2 and row 3 in a Tailwind CSS grid. Which class combination achieves this?
Attempts:
2 left
💡 Hint
Tailwind uses
col-start- and row-start- for grid placement.✗ Incorrect
The classes col-start-2 and row-start-3 place the item at column 2, row 3.
❓ accessibility
expert3:00remaining
How to ensure keyboard users can navigate a grid with auto-flow placement?
You have a grid with
grid-auto-flow: column in Tailwind CSS. What is the best way to ensure keyboard users navigate the grid items in a logical order?Attempts:
2 left
💡 Hint
Keyboard navigation follows DOM order, not visual layout.
✗ Incorrect
Keyboard users navigate elements in DOM order. When using grid-auto-flow: column, the visual order differs from DOM order by default. Rearranging DOM order to match visual order ensures logical keyboard navigation.