Created
May 24, 2013 13:06
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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