<div class="speech-bubble x">
Normal Bubble
</div>
<div class="x"></div>
<div class="speech-bubble rounded x">
Rounded Bubble
</div>
<div class="x"></div>
<div class="speech-bubble blue x">
Different Color Bubble
</div>
<div class="x"></div>
<div class="speech-bubble large x">
Large Size Bubble
</div>
<div class="x"></div>
<div class="speech-bubble rounded large blue x">
Everything Combined Bubble
</div>
<div class="x"></div>
.speech-bubble {
clear: both;
background: #ddd;
color: #333;
display: inline-block;
font-size: 14px;
line-height: 4em;
margin-bottom: 45px;
padding: 0 1em;
position: relative;
text-align: center;
vertical-align: top;
min-width: 7em;
}
.speech-bubble:after {
border: 1em solid transparent;
border-top-color: #ddd;
content: '';
margin-left: -1em;
position: absolute;
top: 100%;
left: 50%;
width: 0;
height: 0;
}
.speech-bubble.large {
font-size: 2em;
padding: 0 1em;
min-width: 4em;
}
.speech-bubble.rounded {
border-radius: .4em;
}
.speech-bubble.blue {
background: #ddf;
color: #334;
}
.speech-bubble.blue:after {
border-top-color: #ddf;
}