19 CSS Blockquote Designs

Marker Underline

Hand-drawn-look uneven SVG underline applied beneath the punchy phrase — the personal-blog flourish that makes a quote feel handwritten.

Pure CSS MIT licensed

Marker Underline the 10th of 19 designs in the 19 CSS Blockquote Designs collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.

Live preview

Open in playground

The code

<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>
.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;
}

Search CodeFronts

Loading…