Created
March 5, 2014 20:41
-
-
Save TimGeronimoLam/9376138 to your computer and use it in GitHub Desktop.
Box with arrow
This file contains hidden or 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 with arrow | |
*/ | |
div { | |
position: relative; | |
margin: 100px; | |
width: 100px; | |
height: 50px; | |
background: #88b7d5; | |
border-top-left-radius: 5px; | |
border-bottom-left-radius: 5px; | |
text-align: center; | |
font: 150%/50px Arial, sans-serif; | |
color: white; | |
} | |
a {text-decoration: none;} | |
div:after { | |
content: ""; | |
position: absolute; | |
top: 50%; | |
left: 100%; | |
height: 0; | |
width: 0; | |
border: solid transparent; | |
border-left-color: #88b7d5; | |
border-width: 25px; | |
margin-top: -25px; | |
} | |
div:hover { | |
background: #4D95C1; | |
} | |
div:hover:after { | |
border-left-color: #4D95C1; | |
} |
This file contains hidden or 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
<a href="#"> | |
<div> | |
Hello | |
</div> | |
</a> |
This file contains hidden or 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 hidden or 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","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