Back to CSS Blockquotes Marker Underline Pure CSS
Share
HTML
<figure class="cbq-marker">
  <blockquote>
    <p>
      Make the change <span class="cbq-marker-line">easy first</span>, then make the easy change.
    </p>
  </blockquote>
  <figcaption>— Kent Beck</figcaption>
</figure>
CSS
.cbq-marker {
  max-width: 340px;
  padding: 14px 4px;
  font-family: Georgia, serif;
  color: #f0eeff;
}

.cbq-marker blockquote {
  margin: 0;
}

.cbq-marker p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.cbq-marker-line {
  position: relative;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
}

.cbq-marker-line::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -4px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M2 5 Q 30 1 60 4 T 118 5' stroke='%23ffd479' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cbq-marker figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: #b8b6d4;
  font-family: system-ui, sans-serif;
}