Blockquote Style: 6 CSS Designs You Can Copy (2026)
November 11, 2026 · 11 min read
Blockquote Style: 6 CSS Designs You Can Copy
A good blockquote style resets the browser's default indent, then adds one clear visual cue. That cue can be an accent bar, a tinted card, a large quotation mark or a centered pull quote. Below are six plain CSS designs with matching HTML, plus shared rules for dark mode, right-to-left text and attribution.
What a Blockquote Looks Like Before You Style It
Every browser ships a default stylesheet, and the HTML rendering rules give blockquote two declarations. It gets margin-block: 1em above and below, and margin-inline: 40px on both sides. There's no border, no italics and no quotation marks.
That 40px indent is why an unstyled quote looks like a stray, shifted paragraph. Most designs start by removing it:
blockquote {
margin-inline: 0;
}
This keeps the vertical spacing and pulls the quote flush with the surrounding text. The figure element gets the same 40px side margins by default, so reset it too if you wrap quotes in one (Design 6 does). Every blockquote style below builds on this reset.
The Markup Your Blockquote CSS Targets
Your selectors need to match the HTML you actually ship. A blockquote usually wraps one or more p elements, and it can also hold lists, headings or another blockquote. Markdown produces exactly that structure: each > line becomes part of a blockquote, and blank > lines split it into paragraphs.
Here's a short Markdown passage with a list item, a nested quote and an attribution line after it:
> Heaven is under our feet as well as over our heads.
>
> Our horizon is never quite at our elbows.
>
> - Simplify, simplify.
>
> > A nested line becomes a blockquote inside the blockquote.
Henry David Thoreau, Walden (1854)
Converted to HTML, that gives a blockquote holding two p elements, a ul, and a second blockquote, followed by a normal p for the attribution. Click Export HTML in the converter below to see the generated markup for yourself. The output is a full HTML document with a small default stylesheet, which gives blockquotes a plain gray left border, but none of the CSS from this post.
For the full > syntax, including nesting rules and how each platform renders it, see our Markdown blockquote guide.
Accent Bar and Card Blockquote Styling
All six blockquote styles read their colors from four custom properties. Paste this token block first, because a var() that points at an undefined property leaves the border or text color unset:
:root {
--bq-text: #1f2937;
--bq-muted: #4b5563;
--bq-accent: #2563eb;
--bq-surface: #f3f4f6;
}
Designs 1 to 5 are classes you put on the blockquote itself, as in <blockquote class="quote-bar">, and Design 6 goes on a wrapping figure. All six use logical properties such as border-inline-start instead of border-left, which matters for right-to-left pages.
Design 1: accent bar. A thick line on the reading-start side and slightly larger text.
.quote-bar {
margin-inline: 0;
padding-inline-start: 1.25rem;
border-inline-start: 4px solid var(--bq-accent);
color: var(--bq-text);
font-size: 1.125rem;
}
You get a quote that lines up with the body text, with a blue bar down its left edge in English.
Design 2: tinted card. A soft background panel with rounded corners works well in documentation and changelogs.
.quote-card {
margin-inline: 0;
padding: 1rem 1.5rem;
background: var(--bq-surface);
border-radius: 0.75rem;
color: var(--bq-text);
}
This renders as a light gray box, and a dark slate box once you add the dark mode tokens shown later.
Design 3: editorial rules. Thin lines above and below give a magazine feel without any color.
.quote-rules {
margin-inline: 0;
padding-block: 1rem;
border-block: 1px solid var(--bq-muted);
font-style: italic;
color: var(--bq-text);
}
The quote sits between two hairlines and reads as a pause in the article.
How Do You Add a Big Quotation Mark to a Blockquote?
Use a ::before pseudo-element with the curly opening quote, Unicode U+201C. In CSS, you write it as the escape '\201C', with the backslash. Leaving the backslash out is a common bug: the browser prints the literal text 201C instead of the glyph.
Design 4: oversized quote mark.
.quote-mark {
position: relative;
margin-inline: 0;
padding-block: 1rem;
padding-inline: 3.5rem 1rem;
color: var(--bq-text);
}
.quote-mark::before {
content: '\201C';
content: '\201C' / '';
position: absolute;
inset-block-start: 0;
inset-inline-start: 0.5rem;
font: 4rem/1 Georgia, serif;
color: var(--bq-accent);
}
The large blue quotation mark hangs in the padding beside the first line.
The second content line adds empty alternative text after the slash, which marks the glyph as decorative for screen readers. MDN's content reference lists support from Chrome 77, Firefox 128 and Safari 17.4, and older browsers fall back to the first line. For marks that follow the page language, the CSS quotes property with open-quote is the better tool. Our CSS quotation marks guide shows how to set it up.
On phones, the 3.5rem padding eats a lot of a 375px screen. Shrink both the padding and the glyph on narrow viewports:
@media (max-width: 30rem) {
.quote-mark {
padding-inline-start: 2.5rem;
}
.quote-mark::before {
font-size: 3rem;
}
}
The quote keeps its oversized mark but gives the text more room.
How Do You Center a Blockquote as a Pull Quote?
Give it a maximum width, set margin-inline: auto, and center the text. A width measured in ch keeps the lines short whatever the font size.
Design 5: centered pull quote.
.quote-pull {
max-width: 32ch;
margin-block: 2rem;
margin-inline: auto;
text-align: center;
font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
line-height: 1.35;
text-wrap: balance;
color: var(--bq-text);
}
This renders as a large, centered block of two or three evenly balanced lines. text-wrap: balance is supported in Chrome 114, Firefox 121 and Safari 17.5 per MDN, and other browsers simply ignore it. Chromium balances only blocks of six lines or fewer, which suits a pull quote anyway.
One caveat: a pull quote repeats text from your own page, so it isn't really a quotation from another source. The HTML spec's own pull quote example uses aside, and these CSS rules work the same on that element.
How Do You Style the Citation Under a Blockquote?
Put the attribution outside the quote. The HTML spec's blockquote section says attribution must sit outside the blockquote element. One of its examples wraps both in a figure, with the source in a figcaption.
Design 6: quote with caption.
<figure class="quote-figure">
<blockquote cite="https://www.gutenberg.org/ebooks/205">
<p>Heaven is under our feet as well as over our heads.</p>
</blockquote>
<figcaption>Henry David Thoreau, <cite>Walden</cite></figcaption>
</figure>
.quote-figure {
margin-inline: 0;
}
.quote-figure blockquote {
margin: 0;
padding-inline-start: 1.25rem;
border-inline-start: 4px solid var(--bq-accent);
color: var(--bq-text);
}
.quote-figure figcaption {
margin-block-start: 0.5rem;
padding-inline-start: 1.25rem;
font-size: 0.875rem;
color: var(--bq-muted);
}
The result is an accent-bar quote with a smaller gray caption indented beneath it. The cite element italicizes the book title by default. The cite attribute on the blockquote isn't shown to readers. The spec says it's a URL meant mainly for private use, such as server-side scripts, so put anything people should see in the caption. Our guide to quotes in HTML covers the cite and figcaption markup in more detail.
Blockquote Styles for Dark Mode and Right-to-Left Text
Because every design reads the same four tokens, dark mode is one override in a prefers-color-scheme query. You don't need any per-design rules.
@media (prefers-color-scheme: dark) {
:root {
--bq-text: #e5e7eb;
--bq-muted: #9ca3af;
--bq-accent: #60a5fa;
--bq-surface: #1f2937;
}
}
We checked each text color against the WCAG 2.2 contrast minimum of 4.5:1 for normal text. We tested on a white page, a #111827 dark page and the card surface. The weakest pair, muted text on the card surface, still scores 6.87:1 in light mode and 5.78:1 in dark mode. If you only target recent browsers, light-dark() with color-scheme: light dark on :root does the same job in one line per color.
Right-to-left text needs nothing extra. On a page with dir="rtl", border-inline-start moves to the right edge and padding-inline-start follows it. The bar and the quote mark then sit where Arabic or Hebrew readers start reading.
Which Blockquote Style Should You Use?
Here's how the six designs compare by the job each one does:
| Design | Visual cue | Best for | Watch out for |
|---|---|---|---|
| 1. Accent bar | Colored line on the start edge | Articles, docs, Markdown output | Clashes with other left-bordered callouts |
| 2. Tinted card | Background panel | Docs, changelogs, callouts | Panel fades into a white page if made lighter |
| 3. Editorial rules | Lines above and below | Long-form essays | Looks like a section break in short posts |
| 4. Quote mark | Large generated glyph | Testimonials, landing pages | Glyph shape varies by font |
| 5. Pull quote | Centered, larger text | Magazine layouts | Repeats page text, so it's not a true quote |
| 6. Figure caption | Quote plus attribution | Any quote with a named source | Needs the extra figure wrapper |
We prefer Design 1, the plain accent bar with slightly larger text, as the default blockquote style for most sites. It survives every theme, it doesn't depend on a font having nice curly quotes, and it never fights the surrounding layout. If your site runs on WordPress, our WordPress block quote guide shows where its Quote block takes custom CSS.
Styling Markdown Blockquotes After You Convert Them to HTML
Generated blockquotes have no classes, so any blockquote style from this page needs a container to scope it. Wrap the converted output in an element such as .post-body, then target the plain blockquote inside it:
.post-body blockquote {
margin-inline: 0;
padding-inline-start: 1.25rem;
border-inline-start: 4px solid var(--bq-accent);
}
.post-body blockquote > :first-child {
margin-block-start: 0;
}
.post-body blockquote > :last-child {
margin-block-end: 0;
}
.post-body blockquote blockquote {
margin-block: 0.75rem;
border-inline-start-color: var(--bq-muted);
}
The first rule applies Design 1 to every quote. The next two stop the paragraphs' own 1em margins from adding extra space inside the bordered quote. The last one gives nested quotes from > > lines a muted bar, so they read as secondary. To style headings, tables and code in the same document, see our Markdown CSS themes guide. For conversion options beyond the browser tool, read how to convert Markdown to HTML.
One limitation: our editor's preview applies its own built-in styles and won't load a stylesheet you paste in, so you can't try these designs there. Test them in your own page or a local HTML file instead. Its Blockquote toolbar button still saves you typing the > markers when you draft the Markdown.
Pick the blockquote style that matches your site and paste it with the token block. That covers dark mode, right-to-left text and accessible contrast in one go. Start with the accent bar if you're unsure, then try the card or pull quote where a page needs more emphasis. To see the HTML your Markdown quotes produce first, run them through the Markdown to HTML converter, or draft them in the editor.