Jump to content
Sign in to follow this  
danboyle

Widen SubNav menu

Recommended Posts

bryan-hadaway

Your link is just a placeholder site, no WordPress install. To help you out I'll at least need to know what theme you're using. Thanks, Bryan

Share this post


Link to post
Share on other sites
rennert

Had the same question with PlatformPro. I tried to widen it just for a single sub-nav with this code:

ul#menu-nav li.page-item-17 ul.children { width: 20em; }

... it works. rennert.at

Share this post


Link to post
Share on other sites
rennert

Is there any possibility to make those sub-navs automatically as wide as the content?

Share this post


Link to post
Share on other sites
cmunns

Uli you would want to use a percentage value as the width instead of the em value. Usually setting the ul to 100% and the li's to a evenly dividable number of 100 you get them all the way across.

Share this post


Link to post
Share on other sites
danboyle

Strange thing... I found this code with Firebug... #primary-nav ul.sf-menu ul li { width: 100%; } Changing the 100% value to 25em or 30em worked with Firebug but when I pasted the code into base.css nothing happened. Any clue? Thanks, Dan

Share this post


Link to post
Share on other sites
cmunns

Oh! you are talking about the dropdowns. Well I would just make them wide enough to accomodate the longest value. And if you want the text to not wrap then use: ` #primary-nav ul.sf-menu ul li a { white-space: nowrap; } `

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×