treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Tricky pseudo selectors...Should this work?!

  • Am i wrong or should this be working properly? It worked fine in the HTML version...BUT, when i transferred over to wordpress, I am using a footer sidebar and a navigation widget in the footer...so i am wondering if it is a matter of cascade??? Thanks guys!


    #footer ul li:after { content: "|"; }
    #footer ul li:last-child:after { content: ""; }
  • it should, yes. i recently dealt with this exact situation; my problem ended up being i had incorrect parents, ancestry, etc. make sure you've got all that stuff correct.
  • If you want to support IE7 you could use first-child and a left hand border.
  • Oh eff me, figured it out...i can't believe i made such a rookie mistake hahaha, I added two widgets into widget area, i forgot to cancel the rule for the subsequent LIs (generated by additional widget areas) durrr....

    Thanks alot guys appreciate the feedback!