All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

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

    This reply has been reported for inappropriate content.

    :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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed