10 Stylish Blockquote Designs: Copy-and-Paste CSS

Contents
  1. Point: make quotes look like quotes
  2. How to change the quote design in WordPress
  3. Using Font Awesome (a web font) for the quotation marks
  4. Blockquote CSS design samples
  5. Wrap-up

This post was automatically translated by AI from the Japanese original. The screenshots are in Japanese.

When you write a post, don’t you often want to quote a passage from someone else’s website or blog?

In this post I’ve prepared CSS samples you can copy and paste.

I’ll also show you how to change the blockquote design on your blog or in WordPress.

It’s all plain HTML and CSS, so please feel free to use it.

Point: make quotes look like quotes#

When you quote text on the web, copyright rules expect you to set it apart from your own writing, so readers can tell at a glance “this is a quotation.”

Look for the quote button (the ” mark) in your blog editor.

In the WordPress block editor, this is the quote button.

Adding a quote in the block editor (in Japanese)

[HTML] How to write blockquote and cite#

Use the <blockquote> tag.
Text wrapped in <blockquote> tells both readers and search engines that it is a quotation or a reproduction.

<blockquote cite="URL of the source">
<p>The quoted text</p>
<cite>Source: <a href="URL of the source">Title of the source article</a></cite>
</blockquote>

How to change the quote design in WordPress#

I’ll use Cocoon (a popular Japanese WordPress theme; I’m using the parent theme Cocoon and the child theme Cocoon child) as the example.

Going from Appearance to the theme editor (in Japanese)

Go to Appearance > Theme File Editor.
CSS is usually written in style.css.
(Which CSS file it lives in can vary by theme, so please check.)

Editing WordPress's style.css (in Japanese)

First, find the blockquote CSS in the “Cocoon” style.css.

Copy the whole block and paste it into the child theme’s style.css.
Then all you need to do is rewrite that code!

Using Font Awesome (a web font) for the quotation marks#

In these designs, the quotation marks “ and ” come from the web font Font Awesome.
With a web font, the marks look clean and don’t change from device to device.
To use Font Awesome, paste its loading code inside <head>…</head> like this:

<head>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>

Using quotation mark characters without a web font#

You can also use plain quotation mark characters instead of a web font.
In that case, change these two lines of the code

font-family:'FontAwesome';
content:'\f10d';

to this (\f10d stands for “):

content:'“';

And change these two lines in the same way

font-family:'FontAwesome';
content:'\f10e';

to this (\f10e stands for ”):

content:'”';

Note: the sizes and spacing are set for the web font, so if you change to plain characters, the layout may shift. Adjust padding (the space inside the box) and font-size (the size of the text) as needed.

Blockquote CSS design samples#

Here are the blockquote designs.
The text inside uses famous sayings (in Japanese), but every sample is based on this HTML:

<blockquote>
<p>The quoted text</p>
<cite>Source: Title of the source article</cite>
</blockquote>

A line and a quotation mark on the left#

Quote sample 1 (in Japanese)

blockquote{
position:relative;
border-left:3px solid #DA8596;
padding-left:10px;
}
blockquote:before{
position:absolute;
font-family:'FontAwesome';
content:'\f10d';
font-size: 20px;
color:#DA8596;
}
blockquote p{
position:relative;
padding-left:30px;
}
blockquote cite{
display: block;
font-size:0.8rem;
color:#F8C8B2;
text-align:right;
}

Double line on the left#

Quote design: a double line on the left (in Japanese)

blockquote{
position:relative;
border-left:3px double #997bad;
padding-left:10px;
background:#e5e6f4;
}
blockquote:before{
position:absolute;
font-family:'FontAwesome';
content:'\f10d';
font-size: 18px;
color:#997bad;
padding-top:10px;
}
blockquote p{
position:relative;
padding: 30px 10px 0px;
}
blockquote cite{
display: block;
font-size:0.8rem;
color:#997bad;
text-align:right;
padding:10px;
}

Quotation marks at the top left and bottom right of a box#

Quote sample 2 (in Japanese)

blockquote{
position:relative;
border:1px solid #8BC0B8;
border-radius:10px;
padding:20px;
}
blockquote:before{
position:absolute;
font-family:'FontAwesome';
content:'\f10d';
font-size: 20px;
color:#8BC0B8;
top:10px;
left:10px;
}
blockquote:after{
position:absolute;
font-family:'FontAwesome';
content:'\f10e';
font-size: 20px;
color:#8BC0B8;
right:10px;
bottom:10px;
}
blockquote cite {
display: block;
font-size: 0.8rem;
text-align: right;
color: #D4DED7;
padding-right:20px;
}

Lines on the left and right, quotation marks at the top left and bottom right#

Quote design (in Japanese)

blockquote{
position:relative;
border-left:2px solid #A5CC80;
border-right:2px solid #A5CC80;
padding:20px;
background:#DDE8C2;
}
blockquote:before{
position:absolute;
font-family:'FontAwesome';
content:'\f10d';
font-size: 28px;
color:#A5CC80;
top:5px;
left:10px;
}
blockquote:after{
position:absolute;
font-family:'FontAwesome';
content:'\f10e';
font-size: 28px;
color:#A5CC80;
right:10px;
bottom:5px;
}
blockquote cite {
display: block;
font-size: 0.8rem;
text-align: right;
color: #808080;
padding-right:20px;
}

Quotation marks on lines at the top and bottom#

Quote sample 3 (in Japanese)

blockquote{
position:relative;
border-top:1px solid #7A87B0;
border-bottom:1px solid #7A87B0;
padding:10px;
}
blockquote:before{
position:absolute;
background-color:#FFFFFF;
color:#7A87B0;
font-family:'FontAwesome';
content:'\f10d';
line-height:1;
text-align:center;
top:-20px;
left:-10px;
padding:10px;
font-size:20px;
}
blockquote:after{
position:absolute;
right:-10px;
bottom:-20px;
background-color:#FFFFFF;
padding:10px;
color:#7A87B0;
font-family:'FontAwesome';
content:'\f10e';
line-height:1;
text-align:center;
font-size:20px;
}
blockquote cite {
display: block;
padding-right:30px;
font-size: 0.8rem;
text-align: right;
color: #808080;
}

A circled quotation mark#

Quote sample 4 (in Japanese)

blockquote{
position:relative;
background:#FBDFDF;
border-radius:10px;
padding:20px;
}
blockquote:before{
position:absolute;
left:45%;
top:-24px;
background-color:#FFFFFF;
color:#808080;
border:2px solid #FBDFDF;
box-sizing:border-box;
font-family:'FontAwesome';
content:'\f10e';
line-height:1;
padding-top:12px;
text-align:center;
width:48px;
height:48px;
font-size:20px;
border-radius:24px;
}
blockquote p {
color:#808080
}
blockquote cite {
display: block;
border-top:1px solid #808080;
padding-top:10px;
font-size: 0.8rem;
text-align: center;
color: #808080;
}

A square frame with a round quotation mark#

Quote design (in Japanese)

blockquote{
position:relative;
border:1px solid #a3c7db;
background:#FFFFF;
padding:20px;
}
blockquote:before{
position:absolute;
left:45%;
top:-24px;
background-color:#a3c7db;
color:#FFFFFF;
border:2px solid #a3c7db;
box-sizing:border-box;
font-family:'FontAwesome';
content:'\f10d';
line-height:1;
padding-top:12px;
text-align:center;
width:48px;
height:48px;
font-size:20px;
border-radius:24px;
}
blockquote p {
color:#808080
}
blockquote cite {
display: block;
padding-top:10px;
font-size: 0.8rem;
text-align: right;
color: #808080;
}

Lines at the top and bottom, a quotation mark in the middle#

Quote sample 5 (in Japanese)

blockquote {
position: relative;
background-color: #f9fbf9;
border-top: 1px solid #B7D7B7;
border-bottom: 1px solid #B7D7B7;
box-shadow: 0 0 0 10px #f9fbf9;
padding: 20px;
}
blockquote p {
margin-top: 20px;
}
blockquote p::before {
font-family:'FontAwesome';
content:'\f10d';
font-size: 24px;
color: #B7D7B7;
position: absolute;
top: 10px;
left: 50%;
}
blockquote cite {
display: block;
font-size: 0.8rem;
text-align: right;
color: #B7D7B7;
}

A quotation mark overlapping the top left#

Quote design: a quotation mark overlapping the top left (in Japanese)

blockquote{
position:relative;
background:#F9eada;
border-radius:10px;
padding:20px;
}
blockquote:before{
position:absolute;
left:5%;
top:-24px;
color:#808080;
box-sizing:border-box;
font-family:'FontAwesome';
content:'\f10d';
line-height:1;
padding-top:12px;
text-align:left;
font-size:40px;
}
blockquote p {
color:#808080
}
blockquote cite {
display: block;
border-top:1px solid #808080;
padding-top:10px;
font-size: 0.8rem;
text-align: right;
color: #808080;
}

Quotation marks overlapping the top left and bottom right#

Quote design: overlapping the top left and bottom right (in Japanese)

blockquote{
position:relative;
background:#CDE7EE;
padding:20px;
}
blockquote:before{
position:absolute;
left:5%;
top:-24px;
color:#3CAAB1;
box-sizing:border-box;
font-family:'FontAwesome';
content:'\f10d';
line-height:1;
padding-top:12px;
text-align:left;
font-size:40px;
}
blockquote p {
color:#808080
}
blockquote cite {
display: block;
border-top:1px dashed #FFFFFF;
padding-top:5px;
padding-bottom:5px;
font-size: 0.8rem;
text-align: right;
color: #808080;
}
blockquote:after{
position:absolute;
right:5%;
bottom:-25px;
color:#3CAAB1;
box-sizing:border-box;
font-family:'FontAwesome';
content:'\f10e';
line-height:1;
padding-bottom:10px;
text-align:left;
font-size:40px;
}

Wrap-up#

In the sample code, the class names are set apart as .sample1 to .sample10.
When you paste the HTML, you can leave out <div class="sample1"> and </div>. In the same way, use the CSS without the .sample1 to .sample5 class names.

Emi
Emi

Making, playing, and widening my world