Last active
August 29, 2015 14:25
-
-
Save stevetrask/b012de503ab23e9470bf to your computer and use it in GitHub Desktop.
Drop shadow in the shape of an elipse
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
.cont{ | |
position: relative; | |
} | |
.image{ | |
width: 100px; | |
height: 100px; | |
background: #000; | |
border-radius: 100px; | |
} | |
.image::after{ | |
content: ' '; | |
width: 72px; | |
height: 5px; | |
background: #ddd; | |
// opacity: 0.45; optional | |
-moz-border-radius: 80px / 5px; | |
-webkit-border-radius: 80px / 5px; | |
border-radius: 80px / 5px; | |
box-shadow: 0px 0px 15px #ccc; | |
position: absolute; | |
top: 123px; | |
left: 14px; | |
} |
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
<div class="cont"> | |
<div class="image"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment