Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS :first-letter FireFox problem

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35181
    Rutger
    Member

    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

    #90724
    jamygolden
    Member

    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.

    #90741
    standuncan
    Member

    Yeah probably your best bet then to make it cross browser compatible is what jamy_za said:

    <span class=”red”>&#8364;</span>

    or

    <span class=”red”>&euro;</span>

    #90792
    Rutger
    Member

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.