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.

Selecting a certain element from elements with same classnames

  • # June 7, 2013 at 3:49 am

    Hi.. I have a list of link boxes with same class names. I want to apply mouse over effect to each so that its child element will disappear when I hover. But my code actually applies it to all.. Please teach me a work around for this. Thanks

    # June 7, 2013 at 3:50 am

    Please post on

    # June 7, 2013 at 4:07 am

    Please teach me…
    I currently have a sample of my jquery code that I’m trying to figure out.

    function () {
    //mouse in
    height: “0”,
    opacity: “0”
    }, 400 );
    function () {
    //mouse out
    height: “130px”,
    opacity: “10”
    }, 200 );

    # June 7, 2013 at 4:31 am

    This reply has been reported for inappropriate content.

    You don’t really need javascript for that:

    You may not have more than 1 ID per page, so I changed the HTML IDs to classes.

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