Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A Help / Chat bubble using only CSS + Unicode. No Images needed!
<title>Help / Chat Bubble with CSS + Unicode</title>
Created by: Jordan Robert Dobson
<style type="text/css">
text-align: center;
margin: 5.0em 0;
font-family: sans-serif;
color: #ccc;
/* Bubble Specific CSS */
margin: 0 auto;
.bubble em{
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
position: relative;
background-color: #eee;
width: 200px;
display: block;
box-shadow: #999 1px 1px 1px;
-moz-box-shadow: #999 1px 1px 1px;
-webkit-box-shadow: #999 1px 1px 1px;
.bubble em{
display: block;
padding: 1.25em;
text-align: center;
z-index: 2;
color: #333;
font-size: .75em;
font-style: normal;
text-shadow: #999 1px 1px 1px;
color: #eee;
position: absolute;
text-align: center;
font-size: 1.5em;
width: 1.0em;
height: 1.0em;
line-height: 1.0em;
top: 50%;
margin-top: -.5em;
left: 50%;
margin-left: -.5em;
content: "\25B2";
top: -.5em;
content: "\25BC";
bottom: -.5em;
content: "\25C0";
left: -.5em;
content: "\25BA";
right: -.5em;
<div class="bubble bottom">
<em>Use for help along side form elements or for other things like chat bubbles. Change the div class to top, left, right, bottom to move the position of the arrow.</em>
<p>No images needed at all.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment