A. Missing dash in row-span3, should be row-span-3.
B. Grid container needs grid-flow-row to enable spanning.
C. The grid must have grid-rows-4 to allow spanning 3 rows.
D. The item needs col-span-3 instead of row-span.
Solution
Step 1: Check the row-span class syntax
The class is written as row-span3 but Tailwind requires a dash: row-span-3.
Step 2: Understand the effect of syntax error
Without the dash, Tailwind ignores the class, so no spanning happens.
Final Answer:
Missing dash in row-span3, should be row-span-3. -> Option A
Quick Check:
Correct syntax needs dash [OK]
Hint: Always include dash between 'row-span' and number [OK]
Common Mistakes:
Forgetting the dash in class names
Assuming grid-rows count limits spanning
Confusing row-span with col-span
5. You want a grid layout with 3 columns and 4 rows. The first item should cover the first 2 rows and 2 columns. Which Tailwind classes correctly achieve this?
hard
A. grid grid-cols-2 grid-rows-4; item: row-span-2 col-span-3
B. grid grid-cols-4 grid-rows-3; item: row-span-2 col-span-2
C. grid grid-cols-3 grid-rows-4; item: row-span-2 col-span-2
D. grid grid-cols-3 grid-rows-4; item: row-span-3 col-span-1
Solution
Step 1: Set grid container with 3 columns and 4 rows
The container needs grid-cols-3 and grid-rows-4 to match the layout.
Step 2: Make the item span 2 rows and 2 columns
Use row-span-2 for vertical spanning and col-span-2 for horizontal spanning.
Final Answer:
grid grid-cols-3 grid-rows-4; item: row-span-2 col-span-2 -> Option C
Quick Check:
Correct grid + row-span-2 + col-span-2 [OK]
Hint: Match grid size, then span rows and columns as needed [OK]
Common Mistakes:
Mixing up grid-cols and grid-rows numbers
Using wrong span numbers for item
Forgetting to span columns when needed
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.