Forums

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
    Posts
  • #198474
    lsebe2
    Participant

    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:

    http://codepen.io/anon/pen/NPeWxW.html

    Here’s my CSS code :

    http://codepen.io/anon/pen/NPeWxW.css

    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!

    #198478
    Paulie_D
    Member

    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.