B. Using justify-center instead of justify-between
C. Items need inline-block class
D. Should use justify-end for spacing
Solution
Step 1: Analyze the class used
The container uses justify-center, which centers items but does not add space between them.
Step 2: Correct class for spacing
To add equal space between items, justify-between should be used instead.
Final Answer:
Using justify-center instead of justify-between -> Option B
Quick Check:
Centering ≠ spacing between items [OK]
Hint: Use justify-between for spacing, not justify-center [OK]
Common Mistakes:
Confusing justify-center with justify-between
Adding unnecessary classes like inline-block
Thinking flex-row is missing when flex defaults to row
5. You want a navigation bar with 4 links spaced evenly across the width, but with extra space at the edges. Which Tailwind class should you use on the flex container?
hard
A. justify-center
B. justify-between
C. justify-around
D. justify-start
Solution
Step 1: Understand spacing requirements
The requirement is equal spacing between items and extra space at the container edges.
Step 2: Match with Tailwind classes
justify-around adds equal space around each item, including edges, unlike justify-between which has no edge space.
Final Answer:
justify-around -> Option C
Quick Check:
Space around items and edges = justify-around [OK]
Hint: Around means space on edges and between items [OK]
Common Mistakes:
Choosing justify-between which lacks edge space
Using justify-center which centers items only
Assuming justify-start spaces items evenly
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.