<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Box-Shadow-Property</title>
    <link rel="stylesheet" href="./css/style.css">
</head>
<body>
    <div class="container">
       <div class="box shadow5">Box-Shadow 5</div>
    </div>
</body>
</html>
*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #FB7AFC;
}

.container{
    position: relative;
    display: flex;
    flex-direction: column;
}

.container .box{
    position: relative;
    width: 300px;
    height: 200px;
    margin: 40px 0;
    background: #fff;
    font-family: consolas;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0, 0, 0, 0.1);
}

.container .box.shadow5::before{
    content: "";
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    filter: blur(10px);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.