A. Column classes must be col-3, col-4, col-5 only.
B. The row class should be col-row instead.
C. The total column widths exceed 12, causing layout issues.
D. Missing container class around the row.
Solution
Step 1: Calculate total column widths
Columns have widths 4 + 5 + 5 = 14, which is more than the 12 units Bootstrap grid allows per row.
Step 2: Understand Bootstrap grid limits
Bootstrap rows should have columns totaling 12 or less to fit properly without wrapping or overflow.
Final Answer:
The total column widths exceed 12, causing layout issues. -> Option C
Quick Check:
Sum of col widths > 12 breaks layout [OK]
Hint: Sum columns ≤ 12 per row [OK]
Common Mistakes:
Ignoring total column width sum
Using wrong class names for rows
Forgetting container is optional but recommended
5. You want a layout with three columns that stack vertically on small screens but sit side by side on medium and larger screens. Which Bootstrap classes achieve this?
hard
A. col-12 col-md-4 for each column
B. col-4 col-md-12 for each column
C. col-6 col-md-6 for each column
D. col-md-12 col-lg-4 for each column
Solution
Step 1: Understand responsive classes
col-12 means full width on extra small screens; col-md-4 means one-third width on medium and larger screens.
Step 2: Match requirement to classes
Using col-12 col-md-4 for each column stacks them vertically on small screens and places them side by side on medium+ screens.
Final Answer:
col-12 col-md-4 for each column -> Option A
Quick Check:
Stack small, side by side medium = col-12 col-md-4 [OK]
Hint: Use col-12 for small, col-md-4 for medium+ [OK]
Common Mistakes:
Reversing small and medium classes
Using same column size for all screens
Not stacking columns on small screens
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.