Created
September 26, 2016 20:17
-
-
Save Lego2012/5ba68afbfa03f01023e1008ab89fe508 to your computer and use it in GitHub Desktop.
Boxshadow only on one or more sides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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