CSS Shadows
Box Shadow Basics
box-shadow adds shadows to elements. Syntax:
x-offset y-offset blur spread color.
Inset Shadows
Add inset keyword for inner shadows, creating a pressed or
recessed effect.
Multiple Shadows
Stack multiple shadows by separating them with commas for complex effects.
Colored Shadows
Use any color for shadows, not just black! Great for creating glowing effects.
Text Shadow
text-shadow adds shadows to text. Syntax:
x-offset y-offset blur color.
Summary
box-shadow- Shadows for elements- Syntax:
x y blur spread color inset- Inner shadows- Multiple shadows - Separate with commas
text-shadow- Shadows for text- Use rgba() for transparent shadows
Quick Quiz
Which keyword creates an inner shadow?
Enjoying these tutorials?