<div class="bubble1">塗りつぶしのふきだし</div>
<div class="bubble2">枠線のみのふきだし</div>
<div class="bubble3">丸吹き出し</div>
.bubble1 {
width: max-content;
min-width: 100px;
margin: 30px;
padding: 10px;
border-radius: 5px;
background-color: #008dab;
color: white;
text-align: center;
position: relative;
}
.bubble1::before {
content: "";
margin-left: -16px;
border: 16px solid transparent;
border-top: 16px solid #008dab;
position: absolute;
bottom: -32px;
left: 50%;
}
.bubble2 {
width: max-content;
min-width: 100px;
margin: 30px;
padding: 10px;
border: 1px solid #005a78;
border-radius: 5px;
border: 3px solid #008dab;
text-align: center;
position: relative;
}
.bubble2::before {
content: "";
margin-left: -16px;
border: 16px solid transparent;
border-top: 16px solid #008dab;
position: absolute;
bottom: -32px;
left: 50%;
z-index: 10;
}
.bubble2::after {
content: "";
margin-left: -12px;
border: 12px solid transparent;
border-top: 12px solid white;
position: absolute;
bottom: -24px;
left: 50%;
z-index: 20;
}
.bubble3 {
width: 100px;
height: 100px;
padding: 10px;
margin: 30px;
border-radius: 50%;
background-color: #008dab;
color: white;
position: relative;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
.bubble3::before {
content: "";
margin-left: -16px;
border: 16px solid transparent;
border-top: 16px solid #008dab;
position: absolute;
bottom: -24px;
left: 50%;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.