Challenge - 5 Problems
Bootstrap Border Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What does the class
border-top-0 do in Bootstrap?In Bootstrap, what visual effect does applying the class
border-top-0 to an element have?Attempts:
2 left
💡 Hint
Think about what the suffix
-0 means in Bootstrap border utility classes.✗ Incorrect
The class border-top-0 removes the top border of the element by setting its width to zero. It does not affect other borders.
📝 Syntax
intermediate2:00remaining
Which class adds a border only on the left side in Bootstrap?
You want to add a visible border only on the left side of a
div using Bootstrap border utilities. Which class should you use?Attempts:
2 left
💡 Hint
Bootstrap 4 uses physical direction classes like border-left.
✗ Incorrect
Bootstrap 5 uses border-start for logical properties supporting different text directions. border-left is used in Bootstrap 4.
❓ rendering
advanced2:00remaining
What is the visual result of applying
border border-primary rounded classes?If you apply the classes
border border-primary rounded to a button, what will you see?Bootsrap
<button class="border border-primary rounded">Click me</button>
Attempts:
2 left
💡 Hint
The
border-primary class applies the primary theme color to the border.✗ Incorrect
The border class adds a border, border-primary colors it blue (default primary color), and rounded gives the corners a smooth curve.
❓ selector
advanced2:00remaining
Which class removes all borders from an element in Bootstrap?
You want to remove all borders from a
div using Bootstrap classes. Which class should you use?Attempts:
2 left
💡 Hint
Bootstrap uses numeric suffixes to control border width.
✗ Incorrect
The class border-0 sets the border width to zero on all sides, effectively removing all borders.
❓ accessibility
expert3:00remaining
How to ensure border color changes remain accessible for users with color blindness?
You use
border-success and border-danger classes to indicate status. What should you do to keep these borders accessible for users with color blindness?Attempts:
2 left
💡 Hint
Think about how people who cannot distinguish colors can still understand status.
✗ Incorrect
Color alone can be hard to distinguish for some users. Adding text or icons ensures everyone understands the meaning regardless of color perception.