Customizing the Blockquote

Simple CSS to polish up the blockquotes in your designs

Blockquote 1

blockquote{
	position: relative;
	background: #fafafa;
	border-radius: 0px 24px 8px 0px;
	padding: 40px 40px 40px 0px;
	border: 0px;
	text-transform: uppercase;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .05em;
	font-size: 24px;
	z-index: 1;
}

blockquote::before{
	position: absolute;
	content: '';
  background: #FAFAFA;
	width: 100vw;
	height: 100%;
	z-index: -1;
	transform: translatex(-100%);
	top: 0;
	left: 0;
}

blockquote::after{
	position: absolute;
	content: '';
	background-image: url('https://wordpress-560871-3561803.cloudwaysapps.com/wp-content/uploads/2023/06/quotegray.svg');
	background-size: contain;
	background-repeat: no-repeat;
	width: 122px;
	height: 90px;
	top: -.5em;
	left: -7em;
}

blockquote p{
	font-weight: 600;
}

cite{
	font-size: 14px;
	font-style: normal;
}

@media  (max-width: 1024px) { 
	blockquote::after{
		top: -10px;
		left: 40px;
		width: 50px
	}
}

Note: You’ll need to replace the background-image URL with a file of your own. Download image here. My copy will eventually be taken down and hot-linking to it will not work.

Blockquote 2

blockquote {
	position: relative;
	border-left: 0px;
	border-top: 4px solid #E7E7E8;
	border-bottom: 4px solid #E7E7E8;
	margin-inline: -3.375rem;
	padding-inline: 3.375rem;
	padding-block: 3rem;
	margin-block: 4rem;
}

blockquote::after{
	position: absolute;
	content: '';
	background-image: url('https://wordpress-560871-3561803.cloudwaysapps.com/wp-content/uploads/2023/06/blockquote-2.svg');
	width: 47px;
	height: 35px;
	right: 2rem;
	bottom: -1.5rem
}

blockquote p{
	font-weight: 700;
	font-style: normal;
	font-size: 2.25rem;
	line-height: 1.2;
}

blockquote cite{
	font-style: normal; 
	text-transform: uppercase; 
	font-weight: 700;
	letter-spacing: .1em;
	font-size: 1rem;
	color: hsla(226, 7%, 51%, 1);
}

@media (max-width: 1024px) { 
	blockquote {
		margin-inline: 0;
		padding-inline: 0;
	}
}

Note: You’ll need to replace the background-image URL with a file of your own. Download image here. My copy will eventually be taken down and hot-linking to it will not work.

Blockquote 3

blockquote {
	position: relative;
	text-align: center; 
	border: 0;
	margin-top: 5rem;
	padding-top: 2rem;
}

blockquote::before{
	position: absolute;
	content: ''; 
	width: 60%;
	height: 2px;
	background-color: #E7E7E8;
	top: 0;
	transform: translatex(-50%);
}

blockquote::after{
	--_quote-size: 34px;
	position: absolute;
	content: '';
	width: var(--_quote-size);
	aspect-ratio: 1/1; 
	background-image: url('https://wordpress-560871-3561803.cloudwaysapps.com/wp-content/uploads/2023/06/blockquote3.svg');
	background-size: cover;
	top: calc(var(--_quote-size)/-2);
	left: 50%;
	transform: translatex(-50%);
	
}

blockquote p {
	font-size: 2.25rem;
	font-weight: 700;
	font-style: normal;
	line-height: 1.1;
}

blockquote cite {
	font-style: normal; 
	text-transform: uppercase; 
	font-weight: 700;
	letter-spacing: .1em;
	font-size: 1rem;
	color: hsla(226, 7%, 51%, 1);
}

Note: You’ll need to replace the background-image URL with a file of your own. Download image here. My copy will eventually be taken down and hot-linking to it will not work.

Blockquote 4

blockquote {
	position: relative;
	border: 0;
	margin-top: 2rem;
	padding-top: 2rem;
	padding-inline: 0;
}

blockquote::before{
	position: absolute;
	content: ''; 
	width: 2px;
	height: 100%;
	background-color: #E7E7E8;
	top: 0;
	left: -3rem;
}

blockquote::after{
	--_quote-size: 34px;
	position: absolute;
	content: '';
	width: var(--_quote-size);
	aspect-ratio: 1/1; 
	background-image: url('https://wordpress-560871-3561803.cloudwaysapps.com/wp-content/uploads/2023/06/blockquote-4.svg');
	background-size: cover;
	top: 2rem;
	left: -3rem;
	transform: translatex(-50%);
	
}

blockquote p {
	font-size: 2.25rem;
	font-weight: 700;
	font-style: normal;
	line-height: 1.1;
}

blockquote cite {
	font-style: normal; 
	text-transform: uppercase; 
	font-weight: 700;
	letter-spacing: .1em;
	font-size: 1rem;
	color: hsla(226, 7%, 51%, 1);
}

@media (max-width: 1024px) { 

	blockquote {
		margin-left: 2rem;
	}
}

@media (max-width: 768px) { 
blockquote::after{
	--_quote-size: 24px;
	left: -2rem;
	}
	
	blockquote::before{
	left: -2rem;
	}
	blockquote p{
		font-size: 2rem;
	}
}

Note: You’ll need to replace the background-image URL with a file of your own. Download image here. My copy will eventually be taken down and hot-linking to it will not work.

Blockquote 5

blockquote {
	border: 2px solid #E7E7E8;
	padding: 3rem;
	text-align: center;
	filter: drop-shadow(4px 4px 0px rgba(231, 231, 232, 0.4));
	background-color: white;
	background-image: url('https://wordpress-560871-3561803.cloudwaysapps.com/wp-content/uploads/2023/06/blockquote5.svg');
	background-repeat: no-repeat;
	background-position: top 2rem left;
}

blockquote P {
	font-size: 2.25rem;
	font-weight: 700;
	font-style: normal;
	line-height: 1.1;
}

blockquote cite {
	font-size: 1rem;
	font-style: normal;
	text-transform: uppercase; 
	letter-spacing: .1em;
	font-weight: 700;
	color: #7A7E8B;
}

Note: You’ll need to replace the background-image URL with a file of your own. Download image here. My copy will eventually be taken down and hot-linking to it will not work.

Categories CSS

Kyle Van Deusen

Co-founder of The Admin Bar Community, owner of OGAL Web Design, and a GeneratePress & GenerateBlocks enthusiast.

For official support, please visit the forums for GeneratePress or GenerateBlocks

If you're looking to have a website built with GeneratePress & GenerateBlocks, then visit my agency website.

2 thoughts on “Customizing the Blockquote”

  1. When I’ve tried to test Blockquote 3, I get an expect RBRACE error for –_quote-size: 34px; in the after section, and it also doesn’t seem to like aspect-ratio which is in red. Any ideas how to fix this?

    Reply

Leave a Comment