Previous Message
Next Message

Styling <q> element

Sent by Stephen Rider on 13 January 2005 21:09


On Jan 13, 2005, at 1:53 PM, Lukasz Grabun wrote:

> The XHTML <q> element is properly interpreted by FF and Opera
> browsers; IE seems not to add extra quote marks before and after the
> quoted text. Who cares. The problem is that I also use SmartyPants to
> beautify texts I publish. Apparently, quotes that FF and Opera so
> neatly surround quoted texts with, are not parsed by SmartyPants. Is
> there a way to - with CSS - set characters to be used instead of
> standard "?

It appears this should work

q:before {content: open-quote;}
q:after {content: close-quote;}

I haven't tested it -- not sure of that would "double up" the quotes in 
some browsers or what.  I would think not, however, as this is 
effectively what FF and NS are already applying to the Q tag.

See this link for more info:
<http://www.w3schools.com/css/pr_gen_content.asp>

Steve

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: