danboyle 0 Report post Posted February 2, 2011 How can I make the subnav button wider to hold longer page titles on one line? Thanks for the help. http://www.naplesrealestatestars.com/ Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted February 3, 2011 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 0 Report post Posted February 4, 2011 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 0 Report post Posted February 4, 2011 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 16 Report post Posted February 4, 2011 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 0 Report post Posted February 4, 2011 Brian, sorry the site was missing. It's back up now. Uli's code didn't have any effect for me regardless of the value substituted for 20em.http://www.naplesrealestatestars.com/ Thanks Share this post Link to post Share on other sites
danboyle 0 Report post Posted February 4, 2011 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 16 Report post Posted February 4, 2011 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