0
0
Bootsrapmarkup~20 mins

Flex utilities in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Flex Utilities Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What does the Bootstrap class d-flex do?
In Bootstrap, what is the main effect of adding the class d-flex to an element?
AIt centers the element horizontally on the page.
BIt makes the element a flex container, enabling flexbox layout for its children.
CIt applies a fixed width and height to the element.
DIt hides the element from the page.
Attempts:
2 left
💡 Hint
Think about what 'd' and 'flex' might stand for in CSS display properties.
📝 Syntax
intermediate
1:30remaining
Which Bootstrap class aligns flex items vertically centered?
Given a flex container in Bootstrap, which class will align its child items vertically centered?
Aalign-items-center
Bjustify-content-center
Calign-content-start
Dflex-wrap-nowrap
Attempts:
2 left
💡 Hint
Vertical alignment in flexbox is controlled by the align-items property.
selector
advanced
1:30remaining
What is the effect of justify-content-between in Bootstrap flex?
In a Bootstrap flex container, what visual layout does the class justify-content-between produce?
AIt places the first item at the start and the last item at the end, with equal space between all items.
BIt centers all items horizontally with equal space around them.
CIt stacks all items vertically with no spacing.
DIt hides all items except the first and last.
Attempts:
2 left
💡 Hint
Think about how justify-content controls horizontal spacing in flexbox.
layout
advanced
1:30remaining
How to make a flex container wrap items in Bootstrap?
Which Bootstrap class makes flex items wrap onto multiple lines inside a flex container?
Aflex-fill
Bflex-nowrap
Cflex-column
Dflex-wrap
Attempts:
2 left
💡 Hint
Wrapping controls whether items stay on one line or move to new lines.
accessibility
expert
2:00remaining
Which practice improves accessibility when using Bootstrap flex for navigation?
When using Bootstrap flex utilities to create a horizontal navigation bar, which practice best improves accessibility?
AHide the navigation from screen readers using <code>aria-hidden="true"</code>.
BUse <div> elements with flex classes and add click handlers only for mouse users.
CUse semantic <nav> element with <ul> and <li> for links, and ensure keyboard focus styles are visible.
DUse only icons without text labels to save space.
Attempts:
2 left
💡 Hint
Think about how screen readers and keyboard users navigate menus.