Created
February 8, 2012 06:26
-
-
Save makuchaku/1766044 to your computer and use it in GitHub Desktop.
Speech Bubbles (http://jsfiddle.net/taaGc/821/)
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" style="background: red; border-color: red;">test</div> | |
<div class="bubble" style="background: green; border-color: green;">test</div> | |
<style> | |
.bubble { | |
margin: 50px; | |
padding: 50px; | |
position: relative; | |
} | |
.bubble:after { | |
content: ""; | |
position: absolute; | |
top: 100%; | |
left: 20px; | |
border-top: 20px solid blue; | |
border-top-color: inherit; | |
border-left: 20px solid transparent; | |
border-right: 20px solid transparent; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment