Forums

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

Home Forums CSS multiple li classes within 1 ul

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

    I have an unordered list, and I would like to have each new list item to have an individual class or id, so i can style it differently how would i go about doing that? Different colors and such…

    http://jsfiddle.net/Q2X4w/2/

    #100190
    Senff
    Participant

    How about this? http://jsfiddle.net/Q2X4w/11/

    And then just style based on those individual classes or IDs…..?

    #100191
    Mikefmi
    Member

  • Link


  • li.SomeClassForThisItem {
    color: red;
    }

    Is that what your looking for? Just give each li its own unique class or id, and create the css for it.

    #100192
    kpiatak
    Member

    How would I set up the css?

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