locked
How to display alternate row colors in a WinJS.UI.ListView

    Question

  • I am using the CSS3 nth-of-type pseudo selector for my items like this:

    .listview .item:nth-of-type(event)

    But it does not apply the style. Whats wrong here?

    Thursday, July 17, 2014 2:19 PM

All replies

  • What is the value of event? Do you have some sample code to show what's not working?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, July 17, 2014 7:13 PM
    Moderator
  • Thats a typo. In the css its "even".
    Friday, July 18, 2014 2:24 AM