I want to enhance the appearance of my blockquotes by giving them a different color background and ensuring they stand out from the regular text. Although using float:right
helps achieve this effect, I prefer not to force the blockquote to the right side of the paragraph. Is there a way to center it instead?
Just to clarify, I'd like the text within the block quote to remain left-justified while only the overall form of the blockquote is centered.
Check out this jsfiddle example for reference.
.blockquote {
width: 75%;
float: right;
margin-top:20px;
margin-bottom: 20px;
padding: 20px;
background: #0fddaf;
background: rgb(15, 221, 175); /* Fall-back for browsers that don't support rgba */
background: rgba(15, 221, 175, .15);
font-family: fanwood_italic-webfont;
}
.blockquote p {
padding: 10px
}
<span class="blockquote">Being good in business is the most fascinating kind of art. Making money is art and working is art and good business is the best art.</span>