<div class="box sb1">I'm speech bubble</div>
<div class="box sb2">I'm speech bubble</div>
<div class="box sb3">I'm speech bubble</div>
<div class="box sb4">I'm speech bubble</div>
<!-- By Coding Market -->
<div class="youtube">
<a href="https://www.youtube.com/channel/UCtVM2RthR4aC6o7dzySmExA" target="_blank">by coding market</a>
</div>
* {
margin: 0px;
padding: 0px;
}
.box {
width: 300px;
margin: 50px auto;
background: #00bfb6;
padding: 20px;
text-align: center;
font-weight: 900;
color: #fff;
font-family: arial;
position: relative;
}
.sb1:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
border-left: 10px solid #00bfb6;
border-right: 10px solid transparent;
border-top: 10px solid #00bfb6;
border-bottom: 10px solid transparent;
right: -19px;
top: 6px;
}
.sb2:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
border-left: 10px solid transparent;
border-right: 10px solid #00bfb6;
border-top: 10px solid #00bfb6;
border-bottom: 10px solid transparent;
left: -19px;
top: 6px;
}
.sb3:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
border-left: 10px solid #00bfb6;
border-right: 10px solid transparent;
border-top: 10px solid #00bfb6;
border-bottom: 10px solid transparent;
left: 19px;
bottom: -19px;
}
.sb4:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
border-left: 10px solid transparent;
border-right: 10px solid #00bfb6;
border-top: 10px solid #00bfb6;
border-bottom: 10px solid transparent;
right: 19px;
bottom: -19px;
}
/* youtube link */
.youtube{
position: fixed;
bottom: 10px;
right: 10px;
width: 160px;
text-align: center;
padding: 15px 10px;
background: #bb0000;
border-radius: 5px;
}
.youtube a{
text-decoration: none;
color: #fff;
text-transform: capitalize;
letter-spacing: 1px;
}
/* Fell free to visit my youtube channel for more updates,
https://www.youtube.com/channel/UCtVM2RthR4aC6o7dzySmExA
*/
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.