Skip to content

Instantly share code, notes, and snippets.

@ahmethelvaci
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmethelvaci/564fb2e87d2640ad1f86 to your computer and use it in GitHub Desktop.
Save ahmethelvaci/564fb2e87d2640ad1f86 to your computer and use it in GitHub Desktop.
CSS Speech Bubble. Orginal : http://www.youtube.com/watch?v=Rar2u77i_yg
<!DOCTYPE html>
<html>
<head>
<title>CSS Bubble</title>
<style type="text/css">
.contents {
width: 300px;
}
.content{
position: relative;
margin-left: 15px;
width: 100%;
padding: 10px;
background-color: #000;
color: #fff;
text-align: center;
border-radius: 10px;
}
.boom {
position: absolute;
width: 0px;
height: 0px;
left: -15px;
top: 10px;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
border-right: 15px solid #000;
}
</style>
</head>
<body>
<div class="contents">
<div class="content">
<p title="Sergüzeşt-i geçti ömrüm">Laylaylom yaparak geçti ömrüm</p>
<div class="boom"></div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment