WordPress.org

Forums

[resolved] horizontal menu nested list problem (3 posts)

  1. Adam Blythe
    Member
    Posted 1 year ago #

    Hi,

    I'm having trouble explaining what I need to do here but hopefully my screenshot will provide a good idea!

    I want to expand the background of my sub menu items to fit the text within them. Please take a look at what I want to achieve (I quickly knocked this up in Photoshop).

    I am using a child theme of twenty ten.

    Please visit my website

    Thanks for your help.

  2. Adam Blythe
    Member
    Posted 1 year ago #

    I just added

    width:auto;

    to

    #access ul ul a {}

    and it is a step further in the right direction!

    However, the backgrounds of the sub menu list items still don't line up!

  3. Adam Blythe
    Member
    Posted 1 year ago #

    I have only tested this is Firefox 26.0 and it works! Remember, I am using a child theme of Twenty Ten. I simply added the following to my editor style.css:

    #access ul ul {
    	width: auto;
    }
    
    #access ul ul li {
    	width:100%;
    }
    
    #access ul ul a {
    	white-space: nowrap;
    	width:auto;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic