What does 'Mixing column widths' mean in Bootstrap?
It means using different column sizes together in the same row to create flexible layouts. For example, combining a wide column with a narrow column.
Click to reveal answer
beginner
How do you specify a column width in Bootstrap?
You add a class like <code>col-4</code> to a <code><div></code> inside a row. The number (4) means the column takes 4 parts out of 12 total parts in the row.
Click to reveal answer
intermediate
What happens if the total column widths in a row exceed 12?
Bootstrap will wrap extra columns to a new line because 12 is the maximum width per row.
Click to reveal answer
intermediate
Can you mix fixed-width columns with auto-width columns in Bootstrap?
Yes. You can use classes like col-6 for fixed width and col for auto width in the same row.
Click to reveal answer
beginner
Why is mixing column widths useful in web design?
It helps create balanced and responsive layouts that adjust well on different screen sizes, making content easier to read and visually appealing.
Click to reveal answer
In Bootstrap, what does col-3 mean?
AThe column is 3% wide
BThe column is 3 pixels wide
CThe column takes 3 out of 12 parts of the row width
DThe column is 3 times taller than others
✗ Incorrect
col-3 means the column uses 3 parts of the 12-part grid system width.
What happens if you add col-8 and col-5 in the same row?
AThe second column wraps to the next line
BThey fit perfectly in one row
CThe columns overlap
DBootstrap ignores the widths
✗ Incorrect
Because 8 + 5 = 13, which is more than 12, the second column moves to a new line.
Which class creates an auto-width column in Bootstrap?
Acol-auto
Bcol-fixed
Ccol-12
Dcol
✗ Incorrect
col creates a flexible column that adjusts width automatically.
Why mix different column widths in a Bootstrap row?
ATo create balanced and responsive layouts
BTo make all columns the same size
CTo break the grid system
DTo disable responsiveness
✗ Incorrect
Mixing widths helps design layouts that look good on all screen sizes.
What is the maximum total column width in a Bootstrap row?
A10
B12
C16
D24
✗ Incorrect
The Bootstrap grid system divides rows into 12 parts total.
Explain how mixing column widths works in Bootstrap and why it is useful.
Think about how columns share space in a row.
You got /4 concepts.
Describe what happens if column widths in a Bootstrap row add up to more than 12.
Consider the grid's 12-part rule.
You got /3 concepts.
Practice
(1/5)
1. What does the class col-6 mean in Bootstrap's grid system?
easy
A. The column is hidden on screens smaller than 6 inches.
B. The column takes up 6 pixels width.
C. The column takes up half the row width (6 out of 12 parts).
D. The column is fixed to 6 rem units wide.
Solution
Step 1: Understand Bootstrap grid basics
Bootstrap divides a row into 12 equal parts for layout.
Step 2: Interpret col-6 meaning
The class col-6 means the column uses 6 of those 12 parts, which is half the row width.
Final Answer:
The column takes up half the row width (6 out of 12 parts). -> Option C
Quick Check:
12 parts total, 6 parts used = half width [OK]
Hint: Remember: col-6 means 6/12 width, or half the row [OK]
Common Mistakes:
Thinking col-6 means 6 pixels wide
Confusing col-6 with fixed width units
Assuming col-6 hides the column
2. Which of the following is the correct way to make a column take 4 parts on medium screens and 12 parts on small screens?
easy
A. <div class='col-12 col-md-4'></div>
B. <div class='col-lg-4 col-12'></div>
C. <div class='col-4 col-md-12'></div>
D. <div class='col-md-12 col-4'></div>
Solution
Step 1: Understand responsive classes order
Bootstrap applies classes from smallest to largest screen sizes. The class without breakpoint applies to all sizes unless overridden.
Step 2: Choose correct class order
To have 12 parts on small screens and 4 parts on medium and up, use col-12 for small and col-md-4 for medium screens.
Final Answer:
<div class='col-12 col-md-4'></div> -> Option A
Quick Check:
Small = col-12, Medium = col-md-4 [OK]
Hint: Put smaller screen class first, then medium with breakpoint [OK]
A. The total column width exceeds 12, causing layout issues.
B. The class names should be col-6 and col-6 instead.
C. The row class is missing a container wrapper.
D. The columns need to use col-md-* classes instead.
Solution
Step 1: Calculate total column width
Adding col-5 and col-8 gives 5 + 8 = 13, which is more than 12.
Step 2: Understand Bootstrap grid limits
Bootstrap rows can only hold 12 parts per row. Exceeding 12 causes the second column to wrap or break layout.
Final Answer:
The total column width exceeds 12, causing layout issues. -> Option A
Quick Check:
5 + 8 = 13 > 12 breaks grid [OK]
Hint: Sum col-* numbers; must not exceed 12 per row [OK]
Common Mistakes:
Ignoring total width exceeding 12
Thinking col-5 and col-8 fit in one row
Assuming container is mandatory for row
5. You want a layout with three columns on large screens: left column 3 parts, middle column 6 parts, right column 3 parts. On small screens, all columns should stack full width. Which Bootstrap classes achieve this?
hard
A. <div class='col-3 col-lg-12'> for left and right, <div class='col-6 col-lg-12'> for middle
B. <div class='col-xl-3 col-12'> for left and right, <div class='col-xl-6 col-12'> for middle
C. <div class='col-lg-12 col-3'> for left and right, <div class='col-lg-12 col-6'> for middle
D. <div class='col-12 col-lg-3'> for left and right, <div class='col-12 col-lg-6'> for middle
Solution
Step 1: Define small screen behavior
On small screens, columns stack full width, so use col-12 for all columns.
Step 2: Define large screen behavior
On large screens, left and right columns take 3 parts (col-lg-3), middle takes 6 parts (col-lg-6).
Step 3: Combine classes correctly
Use col-12 col-lg-3 for left and right, and col-12 col-lg-6 for middle to apply small screen first, then large screen overrides.
Final Answer:
<div class='col-12 col-lg-3'> for left and right, <div class='col-12 col-lg-6'> for middle -> Option D
Quick Check:
Small = col-12, Large = col-lg-3 or col-lg-6 [OK]
Hint: Write small screen class first, then large screen class [OK]
Common Mistakes:
Reversing class order causing wrong widths
Using col-3 for small screens instead of col-12
Mixing breakpoint prefixes incorrectly
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.