<div class="kaiwa">
  <!-- 左のアイコン -->
  <figure class="kaiwa-img-left"><img src="https://kabuyui-wp.com/wp-content/uploads/icon-m.jpg"></figure>
  <!-- 左の会話文 -->
  <div class="kaiwa-text-right">
    <p class="kaiwa-text">会話風に書くこともできます。</p>
  </div>
</div>
<div class="kaiwa">
    <!-- 右のアイコン -->
  <figure class="kaiwa-img-right"><img src="https://kabuyui-wp.com/wp-content/uploads/icon-w.jpg" alt=""></figure>
    <!-- 右の会話文 -->
  <div class="kaiwa-text-left">
    <p class="kaiwa-text">会話風に書くこともできます。</p>
  </div>
</div>
/*チャット風会話文 style.css 2274-2425行目
----------------------------------------------------*/
.kaiwa {
    margin-bottom: 25px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 763px) {
    .kaiwa {
        width: 95%;
    }
}

/* 左画像 */
.kaiwa-img-left {
    margin: 0;
    float: left;
    width: 60px;
    height: 60px;
    margin-right: -70px;
}

/* 右画像 */
.kaiwa-img-right {
    margin: 0;
    float: right;
    width: 60px;
    height: 60px;
    margin-left: -70px;
}

.kaiwa figure img {
    width: 100%;
    height: 100%;
    border: 1px solid #aaa;
    border-radius: 50%;
    margin: 0;
}

@media (max-width: 763px) {
    .kaiwa figure img {
        width: 80%;
        height: 80%;
    }
}

/* 画像の下のテキスト */
.kaiwa-img-description {
    padding: 5px 0 0;
    font-size: 10px;
    text-align: center;
    position: relative;
    bottom: 15px;
}

/* 左からの吹き出しテキスト */
.kaiwa-text-right {
    position: relative;
    margin-left: 80px;
    padding: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    margin-right: 12%;
    float: left;
}

@media (max-width: 763px) {
    .kaiwa-text-right {
        position: relative;
        margin-left: 65px;
        padding: 10px;
        border-radius: 10px;
        background: #f5f5f5;
        margin-right: 5%;
        float: left;
    }
}

/* 右からの吹き出しテキスト */
.kaiwa-text-left {
    position: relative;
    margin-right: 80px;
    padding: 10px;
    border-radius: 10px;
    background-color: #85e349;
    margin-left: 12%;
    float: right;
}

@media (max-width: 763px) {
    .kaiwa-text-left {
        position: relative;
        margin-right: 75px;
        padding: 10px;
        border-radius: 10px;
        background-color: #85e349;
        margin-left: 5%;
        float: right;
    }
}

#mian p.kaiwa-text {
    margin: 0 0 20px;
}

#mian p.kaiwa-text:last-child {
    margin-bottom: 0;
}

/* 左の三角形を作る */
.kaiwa-text-right:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    top: 15px;
    left: -20px;
}

.kaiwa-text-right:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #f5f5f5;
    top: 15px;
    left: -19px;
}

/* 右の三角形を作る */
.kaiwa-text-left:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    top: 15px;
    right: -20px;
}

.kaiwa-text-left:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #85e349;
    top: 15px;
    right: -19px;
}

/* 回り込み解除 */
.kaiwa:after,
.kaiwa:before {
    clear: both;
    content: "";
    display: block;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.