Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <style> .card { background-color: white; padding: 30px; width: 250px; margin-bottom: 30px; border: 1px solid #eee; /* h-offset | v-offset | blur | spread | color */ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } .inset-box { background-color: #f0f0f0; padding: 30px; width: 250px; /* Inset shadow (inside the box) */ box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.3); } </style> </head> <body> <div class="card">Box Shadow (Card Style)</div> <div class="inset-box">Inset Box Shadow</div> </body> </html>