You can comma-separate shadows:

box-shadow: inset 0 2px 0px #dcffa6, 0 2px 5px #000;
Answer from David Thomas on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › box-shadow
box-shadow - CSS | MDN
To specify multiple shadows, provide a comma-separated list of shadows. ... Specifies color for the shadow. See <color> values for possible keywords and notations. If not specified, the value of the color property defined in the parent element is used. ... Specifies the offset length of the shadow.
🌐
W3Schools
w3schools.com › css › css3_shadows_box.asp
CSS Box Shadow
The CSS box-shadow property is used to apply one or more shadows to an element.
🌐
SpinKit
tobiasahlin.com › blog › layered-smooth-box-shadows
Smoother & sharper shadows with layered box-shadows | Tobias Ahlin
We can achieve this effect by creating multiple box-shadows (separating each shadow with a comma), and increasing the offset and blur for every shadow (the box-shadow syntax is X-offset Y-offset blur color):
🌐
CSS-Tricks
css-tricks.com › almanac › properties › b › box-shadow
box-shadow | CSS-Tricks
September 22, 2022 - box-shadow: inset 5px 5px 10px #000000, inset -5px -5px 10px blue; The example shows how you can use that to create multiple borders:
🌐
DEV Community
dev.to › jackconner1 › how-to-use-multiple-box-shadows-in-css-5864
How to use Multiple Box Shadows in CSS - DEV Community
December 9, 2022 - This tutorial goes into details on the usage of multiple box shadows in CSS.
🌐
W3Schools
w3schools.com › css › tryit.asp
Add multiple shadows for an element
The W3Schools online code editor allows you to edit code and view the result in your browser
Find elsewhere
🌐
Tailwind CSS
tailwindcss.com › docs › box-shadow
box-shadow - Effects - Tailwind CSS
Use utilities like shadow-sm and shadow-lg to apply different sized outer box shadows to an element:
🌐
EntheosWeb
entheosweb.com › tutorials › css › multiple shadows in css tutorial – view in firefox, chrome etc.
Multiple Shadows in CSS Tutorial – View in Firefox, Chrome etc.
April 2, 2024 - First We’ll look at the code and then I’ll explain the shadow properties. <head> <style type=text/css> #example2{ width:50px; height:50px; border:50px; border-radius:5px solid #333; -moz-border-radius:50px; -webkit-border-radius:50px; box-shadow:inset 0 0 12px 4px #0000FF, inset 0 0 12px 10px #1E90FF, inset 0 0 12px 17px #9932CC, 0 0 4px 10px #333333, 0 0 6px 15px #AAAAAA, 0px -20px 50px 50px #CC0000, 0px -20px 12px 50px #333333, -20px 30px 50px 50px #00CC00, -20px 30px 12px 50px #333333, 20px 30px 50px 50px #FFD700, 20px 30px 12px 50px #333; -moz-box-shadow:inset 0 0 12px 4px #0000FF, ins
🌐
Josh W. Comeau
joshwcomeau.com › css › designing-shadows
Designing Beautiful Shadows in CSS • Josh W. Comeau
In this tutorial, we'll learn how to transform typical box-shadows into beautiful, life-like ones: ... This tutorial is intended for developers who are comfortable with the basics of CSS.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Backgrounds_and_borders › Box-shadow_generator
Box-shadow generator - CSS | MDN
You can add ::before and ::after pseudo-elements to the element, and give them box shadows as well. To switch between the element and its pseudo-elements, use the buttons along the top labeled "element", "::before", and "::after". The box at the bottom-right contains the CSS for the element ...
🌐
W3Schools
w3schools.com › cssref › css3_pr_box-shadow.php
CSS box-shadow property
Tip: Read more about allowed values (CSS length units) Add a blur effect to the shadow: #example1 { box-shadow: 10px 10px 8px #888888; } Try it Yourself » · Define the spread radius of the shadow: #example1 { box-shadow: 10px 10px 8px 10px #888888; } Try it Yourself » · Define multiple shadows: #example1 { box-shadow: 5px 5px blue, 10px 10px red, 15px 15px green; } Try it Yourself » ·
🌐
CSS-Tricks
css-tricks.com › snippets › css › css-box-shadow
CSS Box Shadow | CSS-Tricks
September 29, 2022 - Mikkel, you might also try adding multiple shadows with the same color so that the top and both sides are shadowed but the bottom is not. Like this: .shadow{box-shadow:5px -5px 5px #ccc, -5px -5px 5px #ccc;}
🌐
CSS Scan
getcssscan.com › css-box-shadow-examples
95 Beautiful CSS box-shadow examples - CSS Scan
🎨 Curated collection of 95 free beautiful CSS box-shadow, ready-to-use for your next projects. Click to copy.
🌐
BigBinary Academy
courses.bigbinaryacademy.com › learn-css › box-shadow › adding-multiple-box-shadows
Adding multiple Box Shadows - Learn CSS | BigBinary Academy
We can apply multiple box shadows to an element by adding a comma after the first set of values and specifying new ones.
🌐
Yuanchuan
yuanchuan.dev › multiple-drop-shadows
Multiple drop shadows
The total number of shadows becomes 3. .box { filter: drop-shadow(20px 20px 0 #666) drop-shadow(40px 0 0 #666); }
🌐
Can I Use
caniuse.com › mdn-css_properties_box-shadow_multiple_shadows
CSS property: box-shadow: Multiple shadows | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
🌐
WebFX
webfx.com › home › blog › web design › a close look at css box shadow
A Close Look at CSS Box Shadow - WebFX
This is where you can get really creative with this CSS property: You can apply more than one box shadow on an element. ... In other words, you can have multiple box shadows by separating each property value group with commas (,).
🌐
DEV Community
dev.to › arbaoui_mehdi › a-tool-to-make-css-box-shadows-effortlessly-4old
A tool to Make CSS Box Shadows Effortlessly - DEV Community
August 5, 2025 - Create, edit and generate multiple custom CSS box shadows. Tagged with html, css, uidesign, productivity.