Recall & Review
beginner
What does
col-span-2 do in Tailwind CSS grid layout?It makes a grid item stretch across 2 columns instead of just 1, allowing it to take more horizontal space.
Click to reveal answer
beginner
How do you make a grid item span all columns in a 4-column grid using Tailwind?
Use
col-span-4 to make the item cover all 4 columns.Click to reveal answer
beginner
Why is column spanning useful in web layouts?
It helps create flexible designs by letting some items take more space, like a headline spanning multiple columns.
Click to reveal answer
beginner
Which Tailwind class would you use to make a grid item span 3 columns?You would use
col-span-3.Click to reveal answer
intermediate
Can column spanning affect responsive design? How?
Yes. You can change column spans at different screen sizes using responsive prefixes like
sm:col-span-2 to adjust layout on small screens.Click to reveal answer
What does the Tailwind class
col-span-1 do?✗ Incorrect
col-span-1 means the grid item takes up exactly one column in the grid.
If you want a grid item to cover 3 columns in a 4-column grid, which class do you use?
✗ Incorrect
col-span-3 makes the item span 3 columns.
How can you make a grid item span 2 columns only on medium screens and above?
✗ Incorrect
Tailwind uses prefixes like md: to apply styles on medium screens and larger.
What is the default column span if you do not specify any
col-span class?✗ Incorrect
By default, grid items span 1 column unless changed.
Which Tailwind utility controls how many columns a grid container has?
✗ Incorrect
grid-cols-{number} sets the number of columns in the grid container.
Explain how column spanning works in Tailwind CSS and why it is useful in layouts.
Think about how grid items can take more space horizontally.
You got /4 concepts.
Describe how you would make a grid item span different numbers of columns on small and large screens using Tailwind.
Use prefixes before col-span to change spans at breakpoints.
You got /3 concepts.