Skip to content

Instantly share code, notes, and snippets.

Forked from ocean90/box-shadow.html
Created April 28, 2017 10:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<title>Box Shadow</title>
.box {
height: 150px;
width: 300px;
margin: 20px;
border: 1px solid #ccc;
.top {
box-shadow: 0 -5px 5px -5px #333;
.right {
box-shadow: 5px 0 5px -5px #333;
.bottom {
box-shadow: 0 5px 5px -5px #333;
.left {
box-shadow: -5px 0 5px -5px #333;
.all {
box-shadow: 0 0 5px #333;
<div class="box top"></div>
<div class="box right"></div>
<div class="box bottom"></div>
<div class="box left"></div>
<div class="box all"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment