- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Dear reader,
I am currently working at http://www.artificialchristmastree.co.uk/ and I have to make all first Euro signs (€) Red. But it works fine with the: first-letter CSS attribute except in Firefox. Is this because it isn’t a letter or is it a Firefox bug?
Chrome, Opera, Internet Explorer and Safari are working fine.
The code is.
.blokkenprijs:first-letter{
color:#ff0000;
}
Page: http://www.brazi-artificiali-de-craciun.ro/actiune-copaci.html
Does anyone know a solution?
With kind regards,
Rutger
It seems that Firefox actually tries to make sure that first-letter is a letter (or number) and not a random character such as &, ©, ®, etc.
If it’s a bit problem that firefox doesn’t do what you’d like, I’d recommend hard-coding the first characters in a span within the HTML, with PHP if it’s dynamic or with javascript.
Yeah probably your best bet then to make it cross browser compatible is what jamy_za said:
<span class=”red”>€</span>
or
<span class=”red”>€</span>
Thanks for the fast replies. I’ve to write a new ASP code then. Because it is a script that is making the euro sign at all pages.
Kinds Regards,
Rutger