Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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