Created
December 11, 2013 16:05
-
-
Save ashtewari/7913125 to your computer and use it in GitHub Desktop.
Untitled
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
/*final-css*/ | |
.speech-bubble { | |
text-align:center; | |
font:40px/100px Arial, sans-serif; | |
color:#fff; | |
background:red; | |
width:300px; | |
height:100px; | |
margin:auto; | |
position: absolute; | |
top: 0; left: 0; bottom: 0; right: 0; | |
} | |
.speech-bubble:before { | |
content:""; | |
position:absolute; | |
bottom:-75px; | |
top:0; | |
left:0; | |
border-color: transparent red; | |
border-style: solid; | |
border-width:0px 0px 100px 25px; | |
} | |
.demo-title { | |
width:300px; | |
height:100px; | |
text-align:center; | |
margin:auto; | |
position: absolute; | |
top: 200px; left: 0px; right: 0px; | |
font-size:20px; | |
color:red; | |
} |
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
<!--ash--> | |
<div class="speech-bubble">@ashtewari</div> | |
<div class="demo-title">How to create a CSS speech bubble</div> | |
<div> | |
Ash Tewari | |
</br> | |
http://www.ashtewari.com/ | |
</br> | |
@ashtewari | |
</div> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment