.bnto-bubble-down { position: relative; display: inline-block; background: hsl(21 100% 62%); color: #fff; padding: 13px 18px; border-radius: 14px; } .bnto-bubble-down::after { content: ""; position: absolute; bottom: -9px; left: 24px; border: 9px solid transparent; border-top-color: hsl(21 100% 62%); border-bottom: 0; }
<div class="bnto-bubble-down">こんにちは!</div>
使い方のコツ
しっぽは「太いborderで作る三角形」テクニック。本体の position: relative が必須です。しっぽの位置は left、大きさは border の太さ(9px)で調整できます。