Created
January 31, 2012 15:27
-
-
Save schadeck/1711066 to your computer and use it in GitHub Desktop.
Blockquote using :before and :after v2: absolute
This file contains 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 using :before and :after v2: absolute | |
*/ | |
blockquote { | |
display: block; | |
border-top: 1px solid #ccc; | |
border-bottom: 1px solid #ccc; | |
padding: 0 50px; | |
position: relative; | |
} | |
blockquote:before { | |
color: #ccc; | |
display: block; | |
font-size: 500%; | |
content: '\201C'; | |
position: absolute; | |
height: 40px; | |
top: 0; | |
left: 0; | |
} | |
blockquote:after { | |
color: #ccc; | |
display: block; | |
font-size: 500%; | |
content: '\201D'; | |
position: absolute; | |
height: 40px; | |
bottom: 12px; | |
right: 0; | |
} | |
p { | |
padding: 0; | |
margin: 1em | |
} |
This file contains 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
<!-- content to be placed inside <body>…</body> --> | |
<blockquote> | |
<p>Let's Place Some Content Here... Quinoa cliche pitchfork beard. Mustache master cleanse cosby sweater trust fund single-origin coffee, +1 vinyl hoodie before they sold out chambray aesthetic. Cardigan mustache stumptown, vice skateboard messenger bag brooklyn wes anderson marfa fixie dreamcatcher shoreditch salvia. 8-bit DIY keffiyeh PBR, cardigan photo booth +1 freegan retro skateboard banksy.</p> | |
</blockquote> |
This file contains 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
{"view":"split-vertical","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment