10 Replies Latest reply: Nov 14, 2011 3:20 PM by mookie blaylock RSS

    :last-child vs :first-child  -- How do I isolate last item  in a list?

    mookie blaylock Community Member

      http://mayakaimal.businesscatalyst.com/index

       

      In an effort to remove the red dot from the last item in the list, I added this to the css:

       

      #menu ul > li a:last-child, #menu ul > li a:hover:last-child {background: #fff;}

       

      I don't understand why this removed the dot from the FIRST item in the list, as well. Do I need to specify a new first-child selector?

       

      mookie