Skip to content

Instantly share code, notes, and snippets.

@charlesroper
Created July 30, 2014 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesroper/31e44472bb89ff417b7b to your computer and use it in GitHub Desktop.
Save charlesroper/31e44472bb89ff417b7b to your computer and use it in GitHub Desktop.
blockquote::before {
content: attr(data-before-quote);
letter-spacing: -.15em;
}
blockquote::after {
content: attr(data-after-quote);
margin-left: -.15em;
}
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="How to do simple quotes" />
<meta charset="utf-8">
<title>Cute Quotes</title>
</head>
<body>
<blockquote id="quote"
data-before-quote="“"
data-after-quote="”">
This is a quote.
</blockquote>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment