- Generators
- Box Shadow
Box Shadow
CSS shadows
0px
4px
12px
0px
25%
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);Frequently Asked Questions
What are the box-shadow parameters?
Box-shadow takes: horizontal offset, vertical offset, blur radius, spread radius (optional), and color. Example: box-shadow: 10px 10px 20px 5px rgba(0,0,0,0.3).
How do I create a realistic shadow?
Use multiple layered shadows with different blur values, keep shadows subtle (low opacity), and consider the light source direction for consistency.
What is the inset shadow?
Adding "inset" keyword creates an inner shadow, making the element appear pressed or recessed. Useful for input fields and buttons.