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

Drop Down menu problem

  • # March 11, 2013 at 2:59 pm

    I am using a free wordpress theme ,named Pitch ( . I redesign the menu bar , so that the background of first element of the menu bar will show an image (the logo). To do so , I just add a simple block of code

    ul#mainmenu-menu {
    background:url(images/logo.png) no-repeat ;

    ul#mainmenu-menu a:hover {


    But the problem is , that image also appear in first element of the dropdown item too . Like the image

    What did I do wrong , How can I fix this ?

    Here is the complete CSS code

    Plz help me out

    # March 11, 2013 at 3:24 pm

    ul#mainmenu-menu >

    And now it points only to the direct child, not any child within.

    # March 11, 2013 at 3:46 pm

    thanks , It works

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