Challenge - 5 Problems
Shadow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What shadow effect is applied by
shadow-lg in Bootstrap?Bootstrap provides different shadow utilities like
shadow-sm, shadow, and shadow-lg. Which of these best describes the visual effect of shadow-lg?Bootsrap
<div class="shadow-lg p-3 mb-5 bg-white rounded">Shadow Large Example</div>
Attempts:
2 left
💡 Hint
Think about how shadows grow from small to large in Bootstrap utilities.
✗ Incorrect
The shadow-lg class applies a larger, more noticeable shadow with greater blur and spread compared to shadow-sm or shadow. It makes the element stand out more visually.
🧠 Conceptual
intermediate1:30remaining
Which Bootstrap shadow utility removes all shadows?
Bootstrap has several shadow utility classes. Which class will remove any shadow effect from an element?
Attempts:
2 left
💡 Hint
Look for the class that explicitly says 'none'.
✗ Incorrect
The shadow-none class removes any shadow from the element, overriding other shadow utilities.
❓ selector
advanced1:30remaining
Which CSS property does Bootstrap's shadow utilities primarily modify?
Bootstrap shadow utilities like
shadow, shadow-sm, and shadow-lg change which CSS property to create shadow effects?Attempts:
2 left
💡 Hint
Think about shadows around boxes, not text.
✗ Incorrect
Bootstrap shadow utilities use the box-shadow CSS property to add shadows around elements' boxes.
❓ accessibility
advanced2:00remaining
How can shadows affect accessibility and what should you consider?
When using shadow utilities in Bootstrap, what accessibility consideration is important?
Attempts:
2 left
💡 Hint
Think about how shadows might affect text clarity.
✗ Incorrect
Shadows can sometimes reduce contrast or create visual noise, making text harder to read. It's important to check contrast ratios and ensure shadows do not interfere with readability.
📝 Syntax
expert2:30remaining
What is the output of this HTML snippet using Bootstrap shadow utilities?
Given the following HTML, what will be the visible shadow effect on the box?
Bootsrap
<div class="shadow-sm shadow-lg shadow-none p-4">Test Box</div>
Attempts:
2 left
💡 Hint
Consider CSS class order and which shadow utility takes precedence.
✗ Incorrect
In Bootstrap, the shadow-none class removes shadows and overrides other shadow classes when applied together.