top of page
Writer's pictureRahul Kumar

14 Beautiful CSS box-shadow examples for your website designing 😍



Shadow #1 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>




Shadow #2 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
           box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #3 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #4 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #5 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #6 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #7 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #8 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #9 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>





Shadow #10 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>





Shadow #11 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>




Shadow #12 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>




Shadow #13 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>



Shadow #14 :


<!DOCTYPE html>
<html>
<title>Online HTML Editor</title>
<head>
    <style>
        div{
            background-color:white;
            box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
            height:200px;
            width:300px;
            margin:auto;
            border-radius:10px;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>

Recent Posts

See All

Comentarios


bottom of page