0
0
Bootsrapmarkup~20 mins

Offset columns in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap Offset Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What does the class offset-md-3 do in Bootstrap?
In Bootstrap grid system, what is the effect of applying offset-md-3 to a column?
AIt makes the column 3 columns wide on medium screens and larger.
BIt adds 3 columns of padding inside the column on medium screens and larger.
CIt moves the column 3 columns to the right on medium screens and larger.
DIt hides the column on medium screens and larger.
Attempts:
2 left
💡 Hint
Think about how offset classes create space before a column.
📝 Syntax
intermediate
1:30remaining
Which Bootstrap class correctly offsets a column by 4 columns on large screens?
You want to move a column 4 columns to the right only on large screens (≥992px). Which class should you use?
Aoffset-lg-4
Boffset-4-lg
Ccol-lg-offset-4
Doffset-large-4
Attempts:
2 left
💡 Hint
Bootstrap uses the pattern offset-{breakpoint}-{number}.
rendering
advanced
2:00remaining
What is the visual layout result of this code snippet?
Given this Bootstrap code inside a container:
<div class="row">
  <div class="col-md-4 offset-md-4">Centered Column</div>
</div>

What will you see on a medium screen (≥768px)?
Bootsrap
<div class="row">
  <div class="col-md-4 offset-md-4">Centered Column</div>
</div>
AA column 4 units wide aligned to the right with 4 units of space on the left.
BA column 4 units wide centered horizontally with equal space on left and right.
CA full-width column with text centered inside.
DA column 4 units wide aligned to the left with 4 units of space on the right.
Attempts:
2 left
💡 Hint
Offset adds space on the left side of the column.
selector
advanced
1:30remaining
Which CSS selector targets only columns with an offset class in Bootstrap?
You want to write custom CSS that styles only Bootstrap columns that have an offset class (like offset-md-3). Which selector correctly targets these columns?
A[class*='offset-']
B.offset
C.col[class^='offset-']
D.col-offset
Attempts:
2 left
💡 Hint
Look for a selector that matches any class containing 'offset-'.
accessibility
expert
2:00remaining
How to ensure keyboard users understand offset columns in Bootstrap layout?
Offset columns create empty space visually. What is the best way to make sure keyboard users and screen readers understand the layout meaningfully?
ANo action needed; offset is purely visual and does not affect accessibility.
BAdd <code>role="presentation"</code> to offset columns to hide them from assistive tech.
CUse empty <code>&lt;div&gt;</code> elements with <code>tabindex=0</code> to represent the offset space.
DAdd <code>aria-label</code> describing the column's position and purpose.
Attempts:
2 left
💡 Hint
Think about how to communicate layout meaning to screen readers.