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

Query cycle pager selectors

  • # February 19, 2010 at 11:42 am

    I’m am trying to do a version of this slideshow:

    …and need to be able to target each of the numbers in the pager to apply a different background image. Any ideas what the selectors might be?

    # February 22, 2010 at 8:18 am
    slideshow > img:nth-child(1) {}
    slideshow > img:nth-child(2) {}
    slideshow > img:nth-child(3) {}
    $(“slideshow > img:nth-child(1)”)

    probably you need to use it with jQuery, because not all browsers supports this css3-selector yet.

Viewing 2 posts - 1 through 2 (of 2 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