Grow your CSS skills. Land your dream job.

Dropdowns only working in FF

  • # January 30, 2011 at 7:30 pm

    I’m just now trying to learn JQuery so this will probably be an easy fix for someone out there.

    I picked up the simple dropdown code Chris gave out a while back. I’m having a weird problem where it actually only drops down in Firefox. Another point to consider is that I’m using it in WordPress.

    Here’s my code in case I’ve just goofed up his code he gave us.

    HTML



    JQuery


    $(function(){

    $("ul.main-nav li").hover(function(){

    $(this).addClass("hover");
    $('ul:first',this).css('display', 'visible');

    }, function(){

    $(this).removeClass("hover");
    $('ul:first',this).css('display', 'hidden');

    });

    });
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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