Created
March 5, 2013 20:10
-
-
Save aurelkurtula/5093823 to your computer and use it in GitHub Desktop.
tooltip with inner shadow
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
/** | |
* tooltip with inner shadow | |
*/ | |
div{ | |
width: 200px; | |
height: 200px; | |
background: red; | |
margin: 80px; | |
border-radius: 20px; | |
position: relative; | |
box-shadow: inset 2px 2px 15px black; | |
} | |
div:before{ | |
content: ' '; | |
display:block; | |
width: 60px; height: 60px; | |
transform: rotate(45deg); | |
background: red; | |
position:absolute; | |
top: 60px; right: -25px; | |
box-shadow: inset -10px 10px 15px -15px black; | |
} |
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> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment