The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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