Created
January 11, 2012 22:19
-
-
Save anonymous/1597122 to your computer and use it in GitHub Desktop.
triangle
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
/** | |
* triangle | |
*/ | |
body { | |
background: #f06; | |
min-height:100%; | |
} | |
#bubble { | |
background: #eee; | |
color: #2f2f2f; | |
padding: 20px; | |
border-radius: 10px; | |
width: 400px; | |
margin: 100px auto; | |
} | |
#bubble:before { | |
content: ''; | |
background: #eee; | |
width: 20px; | |
height: 20px; | |
position: absolute; | |
-webkit-transform: rotate(45deg); | |
margin-top: -30px | |
} | |
#bubble2 { | |
background: #eee; | |
color: #2f2f2f; | |
padding: 20px; | |
border-radius: 10px; | |
width: 400px; | |
margin: 100px auto; | |
border: 4px solid #0f0 | |
} | |
#bubble2:before { | |
content: ''; | |
background: #eee; | |
width: 20px; | |
height: 20px; | |
position: absolute; | |
-webkit-transform: rotate(45deg); | |
margin-top: -35px; | |
border-left: 4px solid #0f0; | |
border-top: 4px solid #0f0; | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="bubble"> | |
This is some text in a bubble | |
</div> | |
<div id="bubble2"> | |
This is some text in a bubble | |
</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
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment