Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 13:06
Show Gist options
  • Save trumball/5643368 to your computer and use it in GitHub Desktop.
Save trumball/5643368 to your computer and use it in GitHub Desktop.
CSS Blockquote Template Not everybody needs to use blockquotes inside their website. But I feel these are an excellent HTML element for separating quoted or repeated content within blogs or webpages. This basic chunk of CSS offers a default style for your blockquotes so they don’t appear as drab and bland.
blockquote {
background: #f9f9f9;
border-left: 10px solid #ccc;
margin: 1.5em 10px;
padding: .5em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
color: #ccc;
content: open-quote;
font-size: 4em;
line-height: .1em;
margin-right: .25em;
vertical-align: -.4em;
}
blockquote p {
display: inline;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment