It is a layout system that divides the page width into 12 equal parts called columns. You can combine these columns to create different widths for content blocks.
Click to reveal answer
beginner
How do you create a row in Bootstrap's 12-column grid?
Use the class="row" on a container element. This groups columns horizontally and ensures proper spacing.
Click to reveal answer
beginner
How do you specify the width of a column in Bootstrap's grid?
Add a class like <code>col-*</code> where * is a number from 1 to 12. For example, <code>col-6</code> means the column takes 6 out of 12 parts, or half the width.
Click to reveal answer
intermediate
Why is the 12-column grid model useful for responsive design?
Because 12 can be divided evenly many ways (2, 3, 4, 6), it lets you easily create layouts that adjust well on different screen sizes.
Click to reveal answer
intermediate
What happens if the total column widths in a row exceed 12?
The columns will wrap to the next line, which can break your layout. Always keep the total column count per row at 12 or less.
Click to reveal answer
In Bootstrap's 12-column grid, what class would you use for a column that takes one quarter of the row's width?
Acol-3
Bcol-4
Ccol-6
Dcol-9
✗ Incorrect
Since 12 divided by 4 is 3, a quarter width column uses col-3.
What is the purpose of the row class in Bootstrap's grid?
ATo create horizontal groups of columns
BTo add padding inside columns
CTo set font size
DTo add background color
✗ Incorrect
The row class groups columns horizontally and manages spacing between them.
If you want two equal columns side by side in Bootstrap's grid, which classes would you use?
Acol-4 and col-8
Bcol-6 and col-6
Ccol-3 and col-9
Dcol-12 and col-12
✗ Incorrect
Two columns each with col-6 take half the width each, fitting side by side.
What happens if you add three columns with classes col-5, col-5, and col-5 inside one row?
AThe row breaks and disappears
BAll columns fit in one line
CThe third column wraps to the next line
DColumns overlap
✗ Incorrect
Because 5+5+5=15 which is more than 12, the third column moves to the next line.
Why is the number 12 chosen for the grid columns in Bootstrap?
ABecause 12 is the default font size
BBecause 12 is the number of months in a year
CBecause 12 is a prime number
DBecause 12 divides evenly into many parts
✗ Incorrect
12 divides evenly into halves, thirds, quarters, sixths, making flexible layouts easier.
Explain how the 12-column grid model helps create flexible page layouts in Bootstrap.
Think about how dividing a page into parts helps arrange content.
You got /4 concepts.
Describe what happens if the total column widths in a Bootstrap row exceed 12 and how to avoid layout issues.
Consider how space is limited in one row.
You got /4 concepts.
Practice
(1/5)
1. In Bootstrap's 12-column grid system, how many columns can you combine in a single row without breaking the layout?
easy
A. Only 3 columns maximum
B. Exactly 6 columns only
C. Up to 12 columns combined
D. Any number of columns without limit
Solution
Step 1: Understand the 12-column grid concept
The grid divides the page width into 12 equal parts, so columns in a row must add up to 12 or less.
Step 2: Apply the rule to column combinations
You can combine columns as long as their total width does not exceed 12, ensuring the layout fits perfectly.
Final Answer:
Up to 12 columns combined -> Option C
Quick Check:
Sum of columns ≤ 12 = Up to 12 columns combined [OK]
Hint: Remember total columns per row must be 12 or less [OK]
Common Mistakes:
Thinking you can use more than 12 columns in one row
Assuming exactly 6 columns are required
Believing any number of columns works
2. Which of the following is the correct Bootstrap class to create a column that spans 4 out of 12 columns?
easy
A. col-6
B. col-12
C. col-8
D. col-4
Solution
Step 1: Identify the class for column width
Bootstrap uses classes like col-4 to specify a column that spans 4 of the 12 grid columns.
Step 2: Match the class to the required width
Since we want 4 columns wide, col-4 is the correct class.
Final Answer:
col-4 -> Option D
Quick Check:
Class for 4 columns = col-4 [OK]
Hint: Class name matches number of columns (col-4 for 4 columns) [OK]
Common Mistakes:
Using col-12 which spans full width
Choosing col-8 or col-6 which are wider than 4 columns
Confusing col-4 with col-14 (invalid)
3. What will be the layout result of this Bootstrap row?
5 + 8 = 13, which is more than 12 allowed per row.
Step 2: Understand Bootstrap grid rules
When total exceeds 12, columns wrap or break layout, causing unexpected results.
Final Answer:
Total columns exceed 12, causing layout break -> Option A
Quick Check:
Sum > 12 means layout error [OK]
Hint: Sum columns; if over 12, layout breaks [OK]
Common Mistakes:
Ignoring total column width sum
Thinking 5 and 8 fit in one row
Assuming class names are wrong
5. You want to create a responsive layout with three columns: first takes 3 columns on small screens and 6 on medium, second takes 6 on small and 3 on medium, third takes 3 on small and 3 on medium. Which Bootstrap classes correctly achieve this?
hard
A. col-md-3 col-sm-6, col-md-6 col-sm-3, col-md-3 col-sm-3
B. col-sm-3 col-md-6, col-sm-6 col-md-3, col-sm-3 col-md-3
C. col-3 col-6, col-6 col-3, col-3 col-3
D. col-sm-6 col-md-3, col-sm-3 col-md-6, col-sm-3 col-md-3
Solution
Step 1: Match small screen classes
First column: 3 columns on small = col-sm-3, second: 6 columns = col-sm-6, third: 3 columns = col-sm-3.
Step 2: Match medium screen classes
First column: 6 columns on medium = col-md-6, second: 3 columns = col-md-3, third: 3 columns = col-md-3.
Step 3: Verify option matches all classes
col-sm-3 col-md-6, col-sm-6 col-md-3, col-sm-3 col-md-3 matches all these class assignments correctly.
Final Answer:
col-sm-3 col-md-6, col-sm-6 col-md-3, col-sm-3 col-md-3 -> Option B
Quick Check:
Responsive classes match screen sizes [OK]
Hint: Use col-sm-* for small, col-md-* for medium screens [OK]
Common Mistakes:
Mixing up small and medium class prefixes
Using col-* without breakpoint for responsiveness
Swapping column sizes between breakpoints
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.