Created
June 8, 2013 02:31
-
-
Save SaraSoueidan/5733712 to your computer and use it in GitHub Desktop.
Transparent Borders
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
#lightbox { | |
background-color: white; | |
-moz-background-clip: padding; /* Firefox 3.6 */ | |
-webkit-background-clip: padding; /* Safari 4? Chrome 6? */ | |
background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ | |
border: 20px solid rgba(0,0,0,0.3); | |
-webkit-border-radius: 40px; | |
-moz-border-radius: 40px; | |
border-radius: 40px; | |
} | |
/*it's all in the background-clip property, from css-tricks.com*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment