0
0
Bootsrapmarkup~20 mins

Column sizing (col-1 through col-12) in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap Column Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Bootstrap column sizing
In Bootstrap's grid system, what does the class col-6 mean for a column inside a row?
AThe column takes up half the width of the row (6 out of 12 parts).
BThe column takes up 6 pixels width.
CThe column is hidden on screens smaller than 6 inches.
DThe column takes up 6% of the row width.
Attempts:
2 left
💡 Hint
Bootstrap grid divides the row into 12 equal parts.
📝 Syntax
intermediate
1:30remaining
Which Bootstrap class creates a column that is one quarter width?
You want a column that takes exactly 1/4 of the row width. Which class should you use?
Acol-6
Bcol-4
Ccol-3
Dcol-9
Attempts:
2 left
💡 Hint
Remember the grid is divided into 12 parts.
rendering
advanced
2:00remaining
Visual layout with mixed column sizes
Given this HTML snippet, what will be the visual width distribution of the columns inside the row?
<div class="row">
  <div class="col-4">A</div>
  <div class="col-8">B</div>
</div>
AColumn A takes 1/3 width, Column B takes 2/3 width.
BColumn A takes 4% width, Column B takes 8% width.
CBoth columns take equal width.
DColumn A takes 4/12 width, Column B takes 8/12 width.
Attempts:
2 left
💡 Hint
Bootstrap columns add up to 12 parts per row.
selector
advanced
1:30remaining
Selecting columns with specific width in CSS
You want to write a CSS rule that targets only Bootstrap columns that take exactly 3 parts of the grid (col-3). Which selector is correct?
A.col-3
B[class^="col-"]
C.col-3, .col-6
D.col-3 > *
Attempts:
2 left
💡 Hint
Bootstrap column classes are named col-1, col-2, ..., col-12.
accessibility
expert
2:30remaining
Ensuring accessible layout with Bootstrap columns
When using Bootstrap column classes like col-1 through col-12, what is the best practice to ensure screen readers understand the layout order correctly?
AAdd aria-hidden="true" to all columns except the first.
BUse semantic HTML elements and avoid changing visual order with CSS only.
CUse tabindex="-1" on columns to skip them in keyboard navigation.
DUse inline styles to reorder columns visually without changing HTML order.
Attempts:
2 left
💡 Hint
Screen readers read content in the order it appears in the HTML.