Skip to content

Instantly share code, notes, and snippets.

@deitrick
Created December 25, 2011 18:46
Show Gist options
  • Save deitrick/1519601 to your computer and use it in GitHub Desktop.
Save deitrick/1519601 to your computer and use it in GitHub Desktop.
CSS3 Chat Bubble
<style type="text/css">
body {
font: normal 62.5%/1 "lucida grande", arial, sans-serif;
color: #343638;
background: url(http://www.d-trick.com/wp-content/themes/portfolio/img/bg/bg.png) repeat; }
#main {
width: 1100px;
overflow: hidden;
margin: 0 auto; }
#content {
position: relative;
width: 400px;
margin: 10px auto;
background: #000;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px; /* future proofing */
-khtml-border-radius: 10px; /* for old Konqueror browsers */
padding: 15px;
overflow: visible;
border: 5px solid #000; }
#content .trouble {
background: rgba(100,100,100,.5) url(http://www.d-trick.com/wp-content/themes/portfolio/img/person.png) no-repeat center 150px;
height: 520px;
width: 380px;
text-align: center;
margin:0 auto;
font: 40px arial;
color: #eaeaea;
text-shadow: 1px 1px 0 #fff;
border: 5px solid #000;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px; /* future proofing */ }
#content .help {
background: none;
height: 50px;
font-size: 40px;
margin: 10px auto 0;
border: none;
width: 410px }
#content .help a {
text-decoration: none;
padding: 390px 400px 0px 150px;
background-position: -900px;
color: #eaeaea;
-webkit-transition: background-position .5s ease;
-moz-transition: background-position .5s ease;
-o-transition: background-position .5s ease;
transition: background-position .5s ease; }
#content .help a:hover {
color: #eaeaea;
background: url(http://www.d-trick.com/wp-content/themes/portfolio/img/bubble2.png) no-repeat 300px 10px; }
</style>
<div id="main">
<div id="content">
<p class="trouble">Having Trouble Standing Out on the Web?</p>
<p class="help"><a href="/services/">Well...?</a></p>
</div> <!-- #content -->
</div>
@deitrick
Copy link
Author

My first Gist & also my first bit of dabbling with CSS3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment