You are here: Re: :before content « HTML « IT news, forums, messages
Re: :before content

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация