Created
November 5, 2011 01:57
-
-
Save darrinholst/1340970 to your computer and use it in GitHub Desktop.
css bubble 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
<div class="bubble"> | |
<div class="bubble-arrow"> | |
<div class="bubble-arrow-before"></div> | |
<div class="bubble-arrow-after"></div> | |
</div> | |
</div> |
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
.bubble{ | |
margin: 50px; | |
width: 150px; | |
height: 50px; | |
position: relative; | |
background-color:#aaa; | |
border:1px solid #600; | |
border-radius: 5px; | |
} | |
.bubble-arrow{ | |
position: absolute; | |
left: -9px; | |
top: 25px; | |
} | |
.bubble-arrow-before, .bubble-arrow-after{ | |
position: absolute; | |
display:block; | |
height: 0; | |
width: 0; | |
} | |
.bubble-arrow-after{ | |
border: 8px solid; | |
border-color: transparent #aaa; | |
top: -8px; | |
border-left-width: 0; | |
left: 1px; | |
} | |
.bubble-arrow-before{ | |
border: 9px solid; | |
border-color: transparent #600; | |
top: -9px; | |
border-left-width: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment