Archived topic
How to center blockquotes
7 replies · Started by George on September 16, 2017
I created a blockquotes design with this CSS:
/*style blockquotes*/
blockquote {
max-width: 550px;
text-align: center;
margin: 20px;
padding: 20px;
font-family: Arial,Helvetica Neue,Helvetica,sans-serif;
font-size: 20px;
background: #f7f2de;
border: solid 2px #a3725b;
border-radius: 30px;
}
The text is centered within the blockquotes. However the entire blockquote is somewhat to the left and the text is in italics. It is not totally left aligned. Is there something from the main style sheet that influences my CSS?
How do I get the entire blockquote to be centered? And is there a way to not have it in italics automatically?
Hi there,
Can you link me to the page? Thanks!
Try adding this to use your existing CSS:
margin: auto;
font-style: normal;
Let me know.
The font style works, but the centering is still not working. The blockquote is still off-center to the left.
Try margin: auto !important;
That works, thank you.
No problem!