<div class="bubble bubble-bottom-left" contenteditable>Type any text here and the bubble will grow to fit the text no matter how many lines. Isn't that nifty?</div>
body {
background: #368dda;
}
.bubble {
position: relative;
font-family: sans-serif;
font-size: 18px;
line-height: 24px;
width: 300px;
background: #fff;
border-radius: 40px;
padding: 24px;
text-align: center;
color: #000;
}
.bubble-bottom-left:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
border-left: 24px solid #fff;
border-right: 12px solid transparent;
border-top: 12px solid #fff;
border-bottom: 20px solid transparent;
left: 32px;
bottom: -24px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.