A. The classes col-5 and col-8 are invalid in Bootstrap.
B. The columns add up to more than 12, causing layout issues.
C. The columns will stack vertically because col-5 is less than col-6.
D. The row class is missing, so columns won't align.
Solution
Step 1: Add column widths
col-5 means 5 parts, col-8 means 8 parts; total is 5 + 8 = 13 parts.
Step 2: Check Bootstrap grid rules
Columns in a row should add up to 12 or less for proper layout; more than 12 breaks layout.
Final Answer:
The columns add up to more than 12, causing layout issues. -> Option B
Quick Check:
5 + 8 = 13 > 12 breaks layout [OK]
Hint: Sum col-# classes; must be ≤ 12 for correct layout [OK]
Common Mistakes:
Thinking col-5 or col-8 are invalid classes
Assuming columns stack because of size difference
Ignoring total width exceeding 12
5. You want to create a responsive layout with three columns where: - The first column is 3 parts wide - The second column is twice as wide as the first - The third column fills the remaining space Which Bootstrap classes should you use?
hard
A. col-3, col-5, col-4
B. col-3, col-6, col-4
C. col-2, col-4, col-6
D. col-3, col-6, col-3
Solution
Step 1: Assign widths based on conditions
First column = 3 parts; second column = twice first = 6 parts.
Step 2: Calculate remaining space for third column
Total so far: 3 + 6 = 9 parts; remaining = 12 - 9 = 3 parts.
Step 3: Match with Bootstrap classes
Use col-3, col-6, and col-3 for the three columns respectively.
Final Answer:
<code>col-3</code>, <code>col-6</code>, <code>col-3</code> -> Option D
Quick Check:
3 + 6 + 3 = 12 parts total [OK]
Hint: Double first col width, subtract sum from 12 for last [OK]
Common Mistakes:
Choosing widths that sum over 12
Not doubling the first column width correctly
Assigning third column more than remaining space
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.