Summarize this article with:
Default blockquotes look boring. A plain indented block of text does nothing for your design.
CSS blockquote examples show you how to transform basic HTML quotes into styled content blocks that grab attention and match your site’s look.
This guide covers practical code snippets you can copy and customize. Simple left borders, modern card layouts, decorative quotation marks, gradient backgrounds, and dark mode variations.
Each example includes complete CSS code that works across Chrome, Firefox, Safari, and Edge.
You’ll also learn typography settings, spacing techniques, and accessibility requirements for professional quote styling.
What is a CSS Blockquote
A CSS blockquote is a styled HTML element used to display quoted text with custom formatting through Cascading Style Sheets.
The <blockquote> tag marks content quoted from another source. CSS transforms this semantic element into visually distinct pull quotes, citations, and highlighted text sections.
Blockquotes separate referenced content from your main body text. They create visual hierarchy and guide readers through important statements.
Without styling, browsers render blockquotes with default left margin indentation. Custom CSS adds borders, backgrounds, typography, and decorative quotation marks.
CSS Blockquote Examples
Modern Block Quote Styles
See the Pen
Modern Block Quote Styles by www.hanyapedia.com (@hanyapedia)
on CodePen.
Styling Blockquotes with Some Shadow
See the Pen
Styling blockquotes with box-shadow by Ramón M. Cros (@ramonmcros)
on CodePen.
Quote Drop Cap By Noah Blon
See the Pen
Big Drop Cap by Noah Blon (@noahblon)
on CodePen.
Blockquote Patterns? Yes, Please!
See the Pen
Blockquote Patterns by Derek Wheelden (@frxnz)
on CodePen.
Compact Book Quotes by Smagin Ilya
See the Pen
Compact book quotes by lalacode (@lalacode)
on CodePen.
Coffee Quote, Because… Why Not?
See the Pen
Coffee Quote – blockquote, flexbox, rgba, before content by Jacob Lett (@JacobLett)
on CodePen.
Flexbox Quote Bricks That Speak Volumes
See the Pen
Flexbox Quote Bricks by Andrea Roenning (@andreawetzel)
on CodePen.
Blockquote & Cite by Rases Kühlewein
See the Pen
Blockquote & Cite V2 by Rases Kühlewein (@Rases)
on CodePen.
Jared Spool’s Web Site Usability Quote
See the Pen
Quote: Jared Spool • Web Site Usability: A Designer’s Guide by Juan Pablo (@jupago)
on CodePen.
Blockquote Stylée Littéraire by Vero
See the Pen
blockquote stylée littéraire by Vero (@kami441)
on CodePen.
Quote Authors for the Lit Enthusiasts
See the Pen
Day 007 Author Quote by Mohan Khadka (@khadkamhn)
on CodePen.
Testimonial Card with That Extra ‘oomph’
See the Pen
#1139 – Testimonial card with image by LittleSnippets.net (@littlesnippets)
on CodePen.
Text Box / Quote Styles That Resonate
See the Pen
Text Box / Quote Styles by MikeBecvar (@mikebecvar)
on CodePen.
Quote: Steven Pressfield’s Words
See the Pen
Quote: Steven Pressfield • Start before you are ready by Juan Pablo (@jupago)
on CodePen.
Great Responsive Blockquote, As It Should Be
See the Pen
Great Responsive Blockquote by r-i-c-h (@r-i-c-h)
on CodePen.
Curly Quotes CSS That’s Straight Up Stunning
See the Pen
Curly CSS Quotes by Jorge Epuñan (@juanbrujo)
on CodePen.
CSS Quote Box Hover Effects for That Dramatic Flair
See the Pen
CSS Quote Box Hover Effects by abdel Rhman (@abdelRhman345)
on CodePen.
Quote 1 – The Zesty Orange Peel
See the Pen
Quote 1 – orange peel by Mugtaba G (@Oddward)
on CodePen.
Quote Cards to Make Them Say “Whoa!”
See the Pen
Quote cards by Sabine Robart (@_Sabine)
on CodePen.
Flexible Full Width Block Quote: No Frills, Just Thrills
See the Pen
Flexible, Full-Width, “Justified” Text Blocks by Reuben L. Lillie (@reubenlillie)
on CodePen.
Unique Blockquote Design: Because Average is Meh
See the Pen
CSS Blockquote by Shahidul Islam Majumder (@sh4hids)
on CodePen.
Quotes with a Sprinkle of Font Awesome and Some Pseudo Magic
See the Pen
Quotes with Font Awesome and pseudo elements by Jaime (@jimmycow)
on CodePen.
Damn Simple Blockquote, No Fluff!
See the Pen
Damn simple blockquote by Lukas Dietrich (@lukasdietrich)
on CodePen.
CSS3 Blockquote Effects: Because Why Not?
See the Pen
12 – CSS3 Blockquote Effects Demos by Pawan Mall (@iPawan)
on CodePen.
Automatic Quotes: It’s Like Magic, But Not Really
See the Pen
Automatic Quotes by Luke Watts (@lukewatts)
on CodePen.
Pure CSS Blockquote: Keepin’ It 100
See the Pen
Pure CSS Blockquote by John Fink (@johnfinkdesign)
on CodePen.
Classy Blockquote Styling: Pinkies Up!
See the Pen
Classy Blockquote Styling by Andrew Wright (@andrewwright)
on CodePen.
Alternating Blockquotes: Dance to the Rhythm
See the Pen
Alternating Blockquotes by Tommy Hodgins (@tomhodgins)
on CodePen.
Quote Effect with a Dose of CSS Blur Filter
See the Pen
Quote Effect using a CSS Blur Filter by 14islands (@14islands)
on CodePen.
Notepaper Blockquote: Old School Cool
See the Pen
Notepaper Blockquote by Thibaut (@Thibaut)
on CodePen.
Polygon-style Gradient Pull Quote: Geometry Was Never This Cool
See the Pen
Polygon-style gradient pull quote by Matt Popovich (@mattpopovich)
on CodePen.
Typography Quote: Sometimes, Less Is More
See the Pen
Typography Quote by Josh Collinsworth (@collinsworth)
on CodePen.
Quote Hovering: Like Magic on Paper
See the Pen
Quote hovering by Lisi (@lisilinhart)
on CodePen.
Subtle Quote? More like, Quiet Riot!
See the Pen
Subtle Quote by Tim Holman (@tholman)
on CodePen.
Fancy Blockquote Style: All Sass and Class
See the Pen
Fancy Blockquote Style by Matt Soria (@poopsplat)
on CodePen.
Continuous Image Border Quote: Because, Why Not?
See the Pen
Continuous Image Border Quote by Joni Trythall (@jonitrythall)
on CodePen.
DariyGRAY’s Stylish Blockquote: Stepping Up the Game
See the Pen
Stylish Blockquote by DariyGRAY (@DariyGRAY)
on CodePen.
Highlighted Blockquote with Citation: The Real MVP
See the Pen
Highlighted Blockquote with Citation by Siege Media Developers (@siegemediadev)
on CodePen.
Quote Animation Inspiration: Making Words Dance
See the Pen
Quote Animation Inspiration by Valentin Galmand (@valentingalmand)
on CodePen.
KBC Quote Style: Fresh Outta the Oven
See the Pen
KBC Quote style by Julien Vasseur (@Djules)
on CodePen.
CSS Grid Tschichold Quote: Geeking It Out
See the Pen
CSS Grid Tschichold Quote by Alyson Sherrard (@ux_unicorn)
on CodePen.
How Does the Blockquote HTML Element Work
The <blockquote> element wraps quoted content in HTML documents.
It accepts a cite attribute for source URLs. Screen readers and search engines recognize this as quoted material through its semantic meaning.
Basic structure:
“ <blockquote cite="https://source-url.com"> <p>Your quoted text here.</p> <cite>— Author Name</cite> </blockquote> `
The element inside references the author or source title. This creates proper semantic HTML structure for accessibility.
Default Browser Styles for Blockquotes
Chrome, Firefox, Safari, and Edge apply similar default styling: 40px left and right margins with no padding or borders.
Font properties inherit from parent elements. The text displays in normal weight, matching surrounding content without visual distinction.
These defaults rarely match modern design needs. Custom CSS overrides create professional quote styling that fits your site’s typography.
How to Style a Blockquote with CSS
Target blockquotes using the element selector or custom classes for specific variations.
Core properties include padding, margin, border, background-color, and font-style. Pseudo-elements add decorative quotation marks.
Start with this base pattern:
` blockquote { margin: 2rem 0; padding: 1.5rem 2rem; border-left: 4px solid #3498db; background: #f8f9fa; font-style: italic; } `
This creates a clean left-bordered quote with subtle background contrast. Adjust values to match your site’s white space rhythm.
Typography Settings for Blockquotes
Set font-family to serif fonts for traditional quotes or match your body font for consistency.
Use line-height between 1.6 and 1.8 for readability. Slightly larger font-size (1.1em to 1.25em) makes quotes stand out without overwhelming.
Accessible typography requires sufficient contrast and comfortable reading size across devices.
Adding Borders and Background Colors
The border-left property creates the classic quote indicator. Use 3px to 5px solid borders in accent colors.
Subtle backgrounds (#f5f5f5, #fafafa) separate quotes from content. Avoid pure white on white layouts.
For color contrast compliance, maintain 4.5:1 ratio between text and background.
CSS Blockquote Examples with Code
These copy-paste ready examples work in all modern browsers. Each includes complete CSS code and HTML structure.
Modify colors, spacing, and fonts to match your design system. Test across viewports for responsive design consistency.
Simple Left Border Blockquote
The most common pattern. Clean, minimal, works everywhere.
` blockquote.simple { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid #2c3e50; background: transparent; font-size: 1.1rem; color: #555; } `
No background keeps it lightweight. The bold left border signals quoted content clearly.
Modern Card Style Blockquote
Uses CSS shadow effects for depth and dimension.
` blockquote.card { margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: none; max-width: 600px; } `
Card-style quotes float above the page. Use a CSS Box Shadow Generator to fine-tune shadow values.
Quotation Mark Blockquote with CSS Pseudo Elements
The ::before selector inserts decorative opening quotes without extra HTML.
` blockquote.quotes { position: relative; padding: 2rem 2rem 2rem 4rem; font-style: italic; }
blockquote.quotes::before { content: “201C”; position: absolute; left: 0; top: 0; font-size: 4rem; color: #ddd; font-family: Georgia, serif; line-height: 1; } `
The Unicode character 201C renders as a curly opening quote. Position it absolutely for precise placement.
Gradient Background Blockquote
Linear gradients add modern visual interest without images.
` blockquote.gradient { padding: 2rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 8px; border: none; } `
White text on gradient backgrounds needs careful contrast checking. Use the CSS Gradient Generator for quick value creation.
Minimal Italic Blockquote
Typography-focused styling for minimalist design approaches.
` blockquote.minimal { margin: 2.5rem 3rem; padding: 0; border: none; background: none; font-style: italic; font-size: 1.3rem; color: #666; text-align: center; } `
No borders, no backgrounds. Pure typographic emphasis through size, style, and spacing.
Blockquote with Author Citation
Style the element separately from quote text for clear attribution.
` blockquote.cited { padding: 1.5rem 2rem; border-left: 3px solid #e74c3c; background: #fdf2f2; }
blockquote.cited cite { display: block; margin-top: 1rem; font-size: 0.9rem; font-style: normal; color: #888; } `
The cite displays as a block element beneath the quote. Add an em dash before the author name in your HTML.
Full Width Highlighted Blockquote
Pull quotes break the container for maximum visual impact. Great for editorial layouts and blog formatting.
` blockquote.fullwidth { margin: 3rem -5vw; padding: 3rem 5vw; background: #1a1a2e; color: #fff; font-size: 1.4rem; text-align: center; } `
Negative margins extend beyond the content area. Adjust the vw values based on your grid system width.
Dark Mode Blockquote Style
Inverted colors for dark theme interfaces. Matches system preferences when paired with media queries.
` @media (prefers-color-scheme: dark) { blockquote { background: #2d2d2d; border-left-color: #bb86fc; color: #e0e0e0; } } `
Purple accent on dark gray creates comfortable contrast without harsh white text.
Responsive Blockquote Design
Adjust padding and font sizes across breakpoints for mobile-first design.
` blockquote { padding: 1rem; font-size: 1rem; }
@media (min-width: 768px) { blockquote { padding: 2rem; font-size: 1.2rem; margin: 2rem 3rem; } } `
Mobile gets tighter spacing. Tablets and desktops expand with larger margins and typography.
How to Add Custom Fonts to CSS Blockquotes
Google Fonts integration requires a link tag in your HTML head, then reference the family in CSS.
` blockquote { font-family: 'Merriweather', Georgia, serif; } `
Serif fonts like Merriweather, Lora, and Playfair Display suit quotes well. They signal importance and formality.
Use responsive typography with clamp() for fluid sizing: font-size: clamp(1rem, 2vw, 1.5rem);
Which CSS Properties Control Blockquote Spacing
Three properties manage blockquote spacing: margin, padding, and line-height.
Margin creates space outside the element. Use vertical margins (top/bottom) to separate quotes from surrounding paragraphs.
Padding adds space inside, between the border and text content. Left padding accommodates decorative elements.
Line-height controls vertical rhythm within the quote text itself. Values between 1.6 and 1.8 work best for readability.
` blockquote { margin: 2rem 0; / vertical separation / padding: 1.5rem 2rem; / internal breathing room / line-height: 1.7; / comfortable reading / } `
How to Create Accessible Blockquotes
Semantic HTML comes first. Use
elements, not styled divs.Screen readers announce blockquotes as quoted content when proper tags exist. ARIA attributes add context if needed: aria-label=”Quote from Author Name”
.Web accessibility requirements for blockquotes:
- 4.5:1 contrast ratio between text and background
- Don’t rely on color alone to indicate quoted content
- Include visible borders or other non-color indicators
- Ensure cite elements are programmatically associated
Test with keyboard navigation. Quotes shouldn’t trap focus or disrupt reading order.
Check the web accessibility checklist for complete WCAG compliance requirements.
Common CSS Blockquote Mistakes
Overloading styles kills readability. One accent color, one border style, appropriate padding. That’s enough.
Missing cite elements. Attribution matters for credibility and SEO. Always include source references.
Poor mobile scaling. Fixed pixel values break on small screens. Use relative units: rem, em, percentages.
Low contrast text. Light gray on white fails accessibility standards. Test with browser dev tools or online checkers.
Decorative-only quotation marks. CSS-generated content via ::before
isn't read by all screen readers. Include quotes in HTML for critical attributions.Ignoring cross-browser compatibility. Test in Chrome, Firefox, Safari, and Edge. Older browsers may need fallback styles.
Keep blockquote designs consistent across your site. Multiple competing styles confuse readers and weaken user experience.
FAQ on CSS Blockquotes Examples
How do I style a blockquote in CSS?
Target the
element with CSS selectors. Apply padding, margin, border-left, background-color, and font-style properties. Most designs use a colored left border with subtle background shading to distinguish quoted text from body content.What is the default blockquote style in browsers?
Browsers apply 40px left and right margins by default. No borders, no background colors. Text inherits parent font properties. Chrome, Firefox, Safari, and Edge render blockquotes nearly identically without custom styling.
How do I add quotation marks to blockquotes with CSS?
Use the ::before
pseudo-element withcontent: “201C”for opening quotes. Position it absolutely within a relative parent. Style with large font-size and muted color for decorative effect without cluttering the text.Can I create responsive blockquotes?
Yes. Use viewport units, percentages, or rem values instead of fixed pixels. Add breakpoints to adjust padding, font-size, and margins for mobile, tablet, and desktop screens.
How do I style the cite element inside a blockquote?
Target blockquote cite
in your CSS. Setdisplay: blockto place it on its own line. Use smaller font-size, normal font-style, and lighter color to differentiate attribution from the quoted text.What CSS properties control blockquote spacing?
Margin creates external space around the element. Padding adds internal space between border and text. Line-height controls vertical rhythm within the quote. Combine all three for comfortable, readable blockquote layouts.
How do I make blockquotes accessible?
Use semantic
tags, not styled divs. Maintain 4.5:1 color contrast ratio. Don't rely on color alone to indicate quotes. Include visible borders and proper cite elements for screen reader compatibility.Can I add box shadows to blockquotes?
Yes. Apply box-shadow
for card-style depth. Typical values:0 4px 15px rgba(0,0,0,0.1). Combine with border-radius and white background for modern CSS cards styling on your quotes.How do I create dark mode blockquotes?
Use @media (prefers-color-scheme: dark)
to detect system preferences. Swap background to dark gray (#2d2d2d), text to light gray (#e0e0e0), and adjust border colors. Purple or blue accents work well on dark backgrounds.What fonts work best for blockquotes?
Serif fonts like Merriweather, Georgia, and Playfair Display add formality to quotes. Match your body font for consistency, or contrast intentionally. Google Fonts offers free web font options with easy integration.
Conclusion
These CSS blockquote examples give you ready-to-use code for any project. From simple left borders to gradient backgrounds and card layouts, each pattern serves a different design need.
Pick a style that fits your site’s typography and brand. Customize the colors, padding values, and font choices.
Remember the fundamentals. Semantic HTML structure matters for SEO and screen readers. Proper contrast ratios keep your quotes readable for everyone.
Test your blockquotes on mobile devices. What looks great on desktop may need tighter spacing on smaller screens.
Start with one example from this collection. Modify it in your browser’s dev tools or on CodePen. Then integrate the final CSS into your stylesheet.
Good quote styling adds polish to blog posts, testimonials, and landing page designs without heavy code overhead.
