Grow your CSS skills. Land your dream job.

Query cycle pager selectors

  • # February 19, 2010 at 11:42 am

    I’m am trying to do a version of this slideshow:
    http://malsup.com/jquery/cycle/pagerHover.html

    …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
    Code:
    slideshow > img:nth-child(1) {}
    slideshow > img:nth-child(2) {}
    slideshow > img:nth-child(3) {}
    Code:
    $(“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.

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