Grow your CSS skills. Land your dream job.

first child in an anchor

  • # December 5, 2012 at 5:45 am

    how to select the first child ,where in done menu dynamic in word press

    # December 5, 2012 at 5:48 am

    .my-menu li:first-of-type a { … }

    # December 5, 2012 at 7:39 am

    :first-child {} would probably be a safer bet as :first-of-type {} is only IE9+ whereas first child goes back to IE7.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".