0
0
Tailwindmarkup~20 mins

Grid auto-flow and placement in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Grid Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2: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?
AItems fill each column before moving to the next column.
BItems fill each row before moving to the next row.
CItems are placed randomly without following rows or columns.
DItems overlap each other in the same grid cell.
Attempts:
2 left
💡 Hint
Think about how rows and columns are filled in a grid layout.
📝 Syntax
intermediate
2: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?
Agrid-flow-col
Bgrid-flow-row
Cauto-flow-column
Dgrid-auto-column
Attempts:
2 left
💡 Hint
Tailwind uses short, descriptive class names for grid flow directions.
rendering
advanced
3: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>
AFour boxes arranged in two rows: first row has 3 boxes, second row has 1 box.
BBoxes overlap in the first grid cell.
CFour boxes stacked vertically in one column.
DFour boxes arranged in a single row with equal width columns.
Attempts:
2 left
💡 Hint
Consider how 4 items fill 3 columns with row flow.
selector
advanced
2: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?
Acolumn-2 row-3
Bstart-col-2 start-row-3
Cgrid-col-2 grid-row-3
Dcol-start-2 row-start-3
Attempts:
2 left
💡 Hint
Tailwind uses col-start- and row-start- for grid placement.
accessibility
expert
3: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?
ASet tabindex="0" on all grid items and rely on DOM order matching visual order.
BUse <code>aria-flowto</code> attributes to define navigation order explicitly.
CRearrange the DOM order to match the visual column-first placement of grid items.
DNo special action needed; keyboard navigation always follows visual grid order.
Attempts:
2 left
💡 Hint
Keyboard navigation follows DOM order, not visual layout.