目次
吹き出しのみ
シンプル
吹き出しの内容
<div class="t8-balloon-1"><p>吹き出しの内容</p></div>.t8-balloon-1 {
display: flex;
justify-content: center;
position: relative;
max-width: 250px;
margin-bottom: 15px;
padding: 1em 1.5em;
border: 3px solid #0d6efd;
background-color: #fff;
color: #fff;
}
.t8-balloon-1::before,.t8-balloon-1::after {
position: absolute;
bottom: -15px;
left: 25px;
width: 30px;
height: 15px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
content: '';
}
.t8-balloon-1::before {
background-color: #0d6efd;
}
.t8-balloon-1::after {
bottom: -11px;
background-color: #fff;
}
シンプル(角丸)
吹き出しの内容
<div class="t8-balloon-2"><p>吹き出しの内容</p></div>.t8-balloon-2 {
display: flex;
justify-content: center;
position: relative;
max-width: 250px;
margin-bottom: 15px;
padding: 1em 1.5em;
border: 3px solid #0d6efd;
border-radius: 5px;
background-color: #fff;
color: #fff;
}
.t8-balloon-2::before,.t8-balloon-2::after {
position: absolute;
bottom: -15px;
left: 25px;
width: 30px;
height: 15px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
content: '';
}
.t8-balloon-2::before {
background-color: #0d6efd;
}
.t8-balloon-2::after {
bottom: -11px;
background-color: #fff;
}
シンプル(丸型)
吹き出しの内容
<div class="t8-balloon-3"><p>吹き出しの内容</p></div>.t8-balloon-3 {
display: flex;
justify-content: center;
position: relative;
max-width: 250px;
margin-bottom: 15px;
padding: 1em 1.5em;
border: 3px solid #0d6efd;
border-radius: 30px;
background-color: #fff;
color: #fff;
}
.t8-balloon-3::before,.t8-balloon-3::after {
position: absolute;
bottom: -15px;
left: 25px;
width: 30px;
height: 15px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
content: '';
}
.t8-balloon-3::before {
background-color: #0d6efd;
}
.t8-balloon-3::after {
bottom: -11px;
background-color: #fff;
}
塗りつぶし
吹き出しの内容
<div class="t8-balloon-4"><p>吹き出しの内容</p></div>.t8-balloon-4 {
display: flex;
justify-content: center;
position: relative;
max-width: 250px;
margin-bottom: 15px;
padding: 1em 1.5em;
border-radius: 5px;
background-color: #0d6efd;
color: #333333;
}
.t8-balloon-4::before {
position: absolute;
bottom: -15px;
left: 25px;
width: 30px;
height: 15px;
background-color: #0d6efd;
clip-path: polygon(0 0, 100% 0, 50% 100%);
content: '';
}ストライプ
吹き出しの内容
<div class="t8-balloon-5"><p>吹き出しの内容</p></div>.t8-balloon-5 {
display: flex;
justify-content: center;
position: relative;
max-width: 250px;
margin-bottom: 15px;
padding: 1em 1.5em;
border-radius: 5px;
background: repeating-linear-gradient(-45deg, #0d6efd, #0d6efd 2px, transparent 2px, transparent 6px);
color: #333333;
}
.t8-balloon-5::before {
position: absolute;
bottom: -15px;
left: 25px;
width: 30px;
height: 15px;
background: repeating-linear-gradient(-45deg, #0d6efd, #0d6efd 2px, transparent 2px, transparent 6px);
clip-path: polygon(0 0, 100% 0, 50% 100%);
content: '';
}がんがえごと
吹き出しの内容
<div class="t8-balloon-6"><p>吹き出しの内容</p></div>.t8-balloon-6 {
color: #fff;
width: 250px;
font-size:1em;
position: relative;
padding: 1em 1.5em;
margin-left: 50px;
background: #0d6efd;
border-radius: 20px;
}
.t8-balloon-6:before {
font-family: "Font Awesome 5 Free";
content: "\f111";
font-weight: 900;
position: absolute;
font-size: 15px;
left: -50px;
bottom: 0;
color: #0d6efd;
}
.t8-balloon-6:after {
font-family: "Font Awesome 5 Free";
content: "\f111";
font-weight: 900;
position: absolute;
font-size: 25px;
left: -30px;
bottom: 0;
color: #0d6efd;
}
ワンポイント
CHECK
<div class="t8-balloon-7"><p>CHECK</p></div>.t8-balloon-7{
position: relative;
display: inline-block;
margin: 1.5em 15px 1.5em 0;
padding: 0 5px;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
color: #FFF;
font-size: 20px;
font-weight: bold;
background: #0d6efd;
border-radius: 50%;
box-sizing: border-box;
}
.t8-balloon-7:before {
content: "";
position: absolute;
top: 50%;
right: -25px;
margin-top: -15px;
border: 15px solid transparent;
border-left: 15px solid #0d6efd;
z-index: 0;
}アイコンあり
丸アイコン
吹き出しの内容が入ります。
<div class="t8-balloon-8">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-8 {
display: flex;
align-items: start;
gap: 0 20px;
}
.t8-balloon-8 img {
max-width: 100px;
height: 100%;
border: 3px solid #0d6efd;
border-radius: 50%;
margin-right:3px;
}
.t8-balloon-8 p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-8 p::before {
position: absolute;
bottom: 10px;
left: -15px;
width: 15px;
height: 30px;
background-color: #0d6efd;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
content: '';
}
角丸アイコン
吹き出しの内容が入ります。
<div class="t8-balloon-8a">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-8a {
display: flex;
align-items: start;
gap: 0 20px;
}
.t8-balloon-8a img {
max-width: 100px;
height: 100%;
border: 3px solid #0d6efd;
border-radius: 20px;
margin-right:3px;
}
.t8-balloon-8a p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-8a p::before {
position: absolute;
bottom: 10px;
left: -15px;
width: 15px;
height: 30px;
background-color: #0d6efd;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
content: '';
}
四角アイコン
吹き出しの内容が入ります。
<div class="t8-balloon-9">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-9 {
display: flex;
align-items: start;
gap: 0 20px;
}
.t8-balloon-9 img {
max-width: 100px;
height: 100%;
border: 3px solid #0d6efd;
margin-right:3px;
}
.t8-balloon-9 p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-9 p::before {
position: absolute;
bottom: 10px;
left: -15px;
width: 15px;
height: 30px;
background-color: #0d6efd;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
content: '';
}背景なし
吹き出しの内容が入ります。
<div class="t8-balloon-10">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-10 {
display: flex;
align-items: start;
gap: 0 20px;
}
.t8-balloon-10 img {
max-width: 100px;
height: 100%;
margin-right:3px;
}
.t8-balloon-10 p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-10 p::before {
position: absolute;
bottom: 10px;
left: -15px;
width: 15px;
height: 30px;
background-color: #0d6efd;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
content: '';
}右側アイコン
吹き出しの内容が入ります。
<div class="t8-balloon-11">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-11 {
display: flex;
flex-direction: row-reverse;
align-items: start;
gap: 0 20px;
}
.t8-balloon-11 img {
max-width: 100px;
height: 100%;
border: 3px solid #0d6efd;
border-radius: 50%;
margin-right:3px;
}
.t8-balloon-11 p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-11 p::after {
position: absolute;
bottom: 10px;
right: -15px;
width: 15px;
height: 30px;
background-color: #0d6efd;
clip-path: polygon(0 0, 100% 50%, 0 100%);
content: '';
}上側アイコン
吹き出しの内容が入ります。
<div class="t8-balloon-12">
<img src="http://temp8.plat4.net/wp-content/uploads/2023/10/cuteicon.png">
<p>吹き出しの内容が入ります。</p>
</div>.t8-balloon-12 {
display: flex;
flex-direction: column;
align-items: start;
gap: 0 20px;
}
.t8-balloon-12 img {
max-width: 100px;
height: 100%;
border: 3px solid #0d6efd;
border-radius: 50%;
margin-right:3px;
}
.t8-balloon-12 p {
position: relative;
max-width: 300px;
margin: 20px 0 0;
padding: 1em 1em;
border-radius: 5px;
background-color: #0d6efd;
color: #fff;
}
.t8-balloon-12 p::before {
position: absolute;
bottom: 10px;
top: -15px;
height: 15px;
width: 30px;
background-color: #0d6efd;
clip-path: polygon(50% 0, 0 100%, 100% 100%);
content: '';
}