Skip to content

Instantly share code, notes, and snippets.

@nilshendriks
Created July 10, 2012 02:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilshendriks/3080521 to your computer and use it in GitHub Desktop.
Save nilshendriks/3080521 to your computer and use it in GitHub Desktop.
Language quote characters
blockquote, q {
quotes: none;
}
q:before, blockquote:before {
content: open-quote;
}
blockquote:before {
margin-left: -0.5em;
}
q:after, blockquote:after {
content: close-quote;
}
/* Specify pairs of quotes for two levels in multiple languages */
q, blockquote { quotes: '“\2009' '\2009”' "‘\2009" "\2009’" }
q:lang(en), blockquote:lang(en) { quotes: '“\2009' '\2009”' "‘\2009" "\2009’" }
q:lang(de), blockquote:lang(de) { quotes: "„\2009" "\2009“" '‚\2009' '\2009‘' }
q:lang(fr), blockquote:lang(fr) { quotes: "«\2009" "\2009»" '‹\2009' '\2009›' }
q:lang(nl), blockquote:lang(nl) { quotes: '“\2009' '\2009”' "‘\2009" "\2009’" }
q:lang(hu), blockquote:lang(hu) { quotes: "„\2009" "\2009“" '»\2009' '\2009«' }
q:lang(jp), blockquote:lang(jp) { quotes: "「\2009" "\2009」" '『\2009' '\2009』' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment