Created
May 9, 2012 13:05
-
-
Save bjallen/2644347 to your computer and use it in GitHub Desktop.
arrow box css
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="arrow_box"><h1 class="logo">css arrow please!</h1></div> | |
.arrow_box { | |
position: relative; | |
background: #91cad5; | |
border: 1px solid #1bf5df; | |
} | |
.arrow_box:after, .arrow_box:before { | |
right: 100%; | |
border: solid transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
position: absolute; | |
pointer-events: none; | |
} | |
.arrow_box:after { | |
border-right-color: #91cad5; | |
border-width: 10px; | |
top: 50%; | |
margin-top: -10px; | |
} | |
.arrow_box:before { | |
border-right-color: #1bf5df; | |
border-width: 11px; | |
top: 50%; | |
margin-top: -11px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment