Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a small shadow to a div using Bootstrap.
Bootsrap
<div class="[1] p-3 mb-2 bg-body rounded">Small shadow box</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using shadow-lg instead of shadow-sm for a small shadow.
Forgetting to add the shadow class entirely.
✗ Incorrect
The class shadow-sm adds a small shadow effect to the element.
2fill in blank
mediumComplete the code to add a large shadow to a button using Bootstrap.
Bootsrap
<button type="button" class="btn btn-primary [1]">Click me</button>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using shadow-sm or shadow instead of shadow-lg for a large shadow.
Not including any shadow class.
✗ Incorrect
The class shadow-lg adds a large shadow effect to the button.
3fill in blank
hardFix the error in the code to remove the shadow from the card.
Bootsrap
<div class="card [1] p-3">No shadow card</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using shadow or shadow-sm which add shadows instead of removing them.
Leaving out the shadow class entirely.
✗ Incorrect
The class shadow-none removes any shadow from the element.
4fill in blank
hardFill both blanks to create a div with medium shadow and rounded corners.
Bootsrap
<div class="[1] [2] p-4">Medium shadow with rounded corners</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using shadow-lg for medium shadow.
Forgetting to add the rounded class.
✗ Incorrect
The class shadow adds a medium shadow, and rounded adds rounded corners.
5fill in blank
hardFill all three blanks to create a button with no shadow, rounded corners, and padding.
Bootsrap
<button class="btn btn-secondary [1] [2] [3]">No shadow button</button>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using shadow instead of shadow-none.
Forgetting to add padding or rounded corners.
✗ Incorrect
The class shadow-none removes shadow, rounded adds rounded corners, and p-3 adds padding.