Skip to content

Instantly share code, notes, and snippets.

@Lego2012
Created September 26, 2016 20:17
Show Gist options
  • Save Lego2012/5ba68afbfa03f01023e1008ab89fe508 to your computer and use it in GitHub Desktop.
Save Lego2012/5ba68afbfa03f01023e1008ab89fe508 to your computer and use it in GitHub Desktop.
Boxshadow only on one or more sides
.box-shadow {
background-color: #AC92EC;
width: 160px;
height: 90px;
margin-top: -45px;
margin-left: -80px;
position: absolute;
top: 50%;
left: 50%;
}
.box-shadow:after {
content: "";
width: 150px;
height: 1px;
margin-top: 88px;
margin-left: -75px;
display: block;
position: absolute;
left: 50%;
z-index: -1;
box-shadow: 0px 0px 8px 2px #000000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment