Created
May 24, 2013 19:41
-
-
Save trumball/5646005 to your computer and use it in GitHub Desktop.
CSS3 Speech Bubble
Numerous user interface purposes come to mind when discussing speech bubbles. These could be handy in discussion comments, or creating bulletin boards, or displaying quoted text. Simply add the following classes into your stylesheet and you can find related HTML codes from this CSS3 snippets post.
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
.chat-bubble { | |
background-color: #ededed; | |
border: 2px solid #666; | |
font-size: 35px; | |
line-height: 1.3em; | |
margin: 10px auto; | |
padding: 10px; | |
position: relative; | |
text-align: center; | |
width: 300px; | |
-moz-border-radius: 20px; | |
-webkit-border-radius: 20px; | |
-moz-box-shadow: 0 0 5px #888; | |
-webkit-box-shadow: 0 0 5px #888; | |
font-family: 'Bangers', arial, serif; | |
} | |
.chat-bubble-arrow-border { | |
border-color: #666 transparent transparent transparent; | |
border-style: solid; | |
border-width: 20px; | |
height: 0; | |
width: 0; | |
position: absolute; | |
bottom: -42px; | |
left: 30px; | |
} | |
.chat-bubble-arrow { | |
border-color: #ededed transparent transparent transparent; | |
border-style: solid; | |
border-width: 20px; | |
height: 0; | |
width: 0; | |
position: absolute; | |
bottom: -39px; | |
left: 30px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment