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

Posted by rossz on 09/20/05 09:02

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: "$";
}

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: "£";

It displays exactly that -- not converting it to the proper character.

So how do you specify entities in css content?

--
Rossz

 

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

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