|
Posted by David Dorward on 09/20/05 09:50
rossz wrote:
> My company decided to do a version of their website targeted to the U.K.
> So in preperation for that I started going through the code (it's PHP
> based) to locate all the dollar signs ($) and define a currency class
> that automatically puts in the currency symbol, e.g.
>
> span.currency:before {
> content: "$";
> }
Interesting ... you know that Internet Explorer doesn't support :before? And
that CSS is supposed to be presentation?
> This way I could quickly slap in a British Pound or Euro symbol for a
> site-wide change. Except you can't do this:
>
> content: "£";
> So how do you specify entities in css content?
You don't, entities are an SGML/XML thing. You use the CSS mechanism for
referring to characters not represented in a character encoding.
http://www.w3.org/TR/CSS2/syndata.html#q24
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|