<div class="container">
<div class="element element-1">
<p>
My one-side shadow is at the bottom. The shadow is offsetted to the bottom using a positive vertical offset.
</p>
</div>
<div class="element element-2">
<p>
My one-side shadow is at left. The shadow is offsetted to the left using a negative horizontal offset.
</p>
</div>
<div class="element element-3">
<p>
My one-side shadow is at right. The shadow is offsetted to the right using a positive horizontal offset.
</p>
</div>
</div>
body {
background-color: #F5F5F5;
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
margin: 40px auto;
width: 90%;
}
.element {
padding: 20px;
background-color: white;
color: #222;
margin-top: 70px;
height: 200px;
border: 10px solid #976fad;
}
.element-1 {
box-shadow: 0 30px 10px -20px rgba(0, 0, 0, 0.8);
}
.element-2 {
box-shadow: -30px 0 10px -20px rgba(0, 0, 0, 0.8);
}
.element-3 {
box-shadow: 30px 0 10px -20px rgba(0, 0, 0, 0.8);
}