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

Home Forums CSS XML + CSS : Problem with child elements!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #198474

    Hi guys! I need to apply corresponding colors with CSS to a XML file where only name of the colors are written.

    Here’s the XML code:

    Here’s my CSS code :

    I have a problem with the black and red color on position “a c a a”.
    I cant’ separate the colors, only black or only red.

    Do you guys know how to solve this issue?

    Thanks a bunch!


    Formatting XML with CSS is not the most common method.

    W3C recommends using XSLT instead.

    Also, that’s an odd structure for an XML file.

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