19 CSS Blockquote Designs 09 / 19
Highlighted Run
Body text with a CSS mark-style highlight behind one punchy phrase — the editorial trick for drawing the eye to the key claim in a long quote.
The code
<figure class="cbq-highlight">
<blockquote>
<p>
Most teams optimize for <mark>shipping faster</mark> when they should be optimizing for
<mark>shipping smaller</mark>.
</p>
</blockquote>
<figcaption>— Sara López, Engineering Manager</figcaption>
</figure> <figure class="cbq-highlight">
<blockquote>
<p>
Most teams optimize for <mark>shipping faster</mark> when they should be optimizing for
<mark>shipping smaller</mark>.
</p>
</blockquote>
<figcaption>— Sara López, Engineering Manager</figcaption>
</figure>.cbq-highlight {
max-width: 360px;
padding: 16px 4px;
font-family: Georgia, serif;
color: #e9e7ff;
}
.cbq-highlight blockquote {
margin: 0;
}
.cbq-highlight p {
margin: 0;
font-size: 18px;
line-height: 1.5;
font-weight: 500;
}
.cbq-highlight mark {
background: linear-gradient(180deg, transparent 55%, rgba(124, 108, 255, 0.55) 55%);
color: inherit;
padding: 0 2px;
border-radius: 2px;
}
.cbq-highlight figcaption {
margin-top: 12px;
font-size: 12px;
color: #b8b6d4;
font-family: system-ui, sans-serif;
} .cbq-highlight {
max-width: 360px;
padding: 16px 4px;
font-family: Georgia, serif;
color: #e9e7ff;
}
.cbq-highlight blockquote {
margin: 0;
}
.cbq-highlight p {
margin: 0;
font-size: 18px;
line-height: 1.5;
font-weight: 500;
}
.cbq-highlight mark {
background: linear-gradient(180deg, transparent 55%, rgba(124, 108, 255, 0.55) 55%);
color: inherit;
padding: 0 2px;
border-radius: 2px;
}
.cbq-highlight figcaption {
margin-top: 12px;
font-size: 12px;
color: #b8b6d4;
font-family: system-ui, sans-serif;
}