Does anybody have any idea on how to increase the width of the sub-tabs on the navigation bar. I know that there is a limit to 24 characters but I'm only using 21. It kicks the title down onto a second line and I would like to keep it all on one line. Our website is BeerArmy.com and if you hover over our festivals tab, you see the last sub-tab (Jolly Skull Beer Fest) kick down on a second line with the word Fest.

I've literally gone through every thread on here with a sub-tab tag and haven't found an answer. I've also searched the net for a snippet of script as I think it would be something that would need to be tweaked in the CSS editor.

Tags: Sub-Tabs Width

Views: 73

Reply to This

Replies to This Discussion

Try this.

#xg_navigation ul div.xg_subtab ul li a {width: 168px;text-align: center;} 

If you don't like the text centered, take that part out. 

Anthony, thanks for your suggestion. I tried adding it to my custom code box on our test network as, <script type=#xg_navigation ul div.xg_subtab ul li a {width: 168px}</script> but it had no effect. Am I missing something?

You want to add it to your appearance section under "Advanced" with your CSS.

AnGella, thanks! Worked like a charm.

You're welcome.  :)

To all, Anthony's code with AnGella clarification is the correct answer. I saw many posts with the same question but no answer. To sum up, use the code #xg_navigation ul div.xg_subtab ul li a {width: 168px} in the advanced section of your appearance settings. You'll have to click publish for the settings to take effect. If you want a longer or shorter drop down sub tab, you control that with the amount of pixels at the end of the code string above.

How can I create a centered sub tab with links inside?

RSS

Latest Activity

Jordon McGee (Jords) replied to soaringeagle's discussion '3.0 feature request'
"+1"
39 minutes ago

NC for Hire
JFarrow replied to JFarrow's discussion 'Become a Youtube Master with These 4 Tricks'
"apparently ning strips that.."
50 minutes ago
Chris replied to soaringeagle's discussion '3.0 feature request'
"This is a standard feature of most forums, and very important! Hopefully it will be implemented."
1 hour ago
Ambroise replied to JFarrow's discussion 'Become a Youtube Master with These 4 Tricks'
"I see nothing between line "compared to this:" and lien "When the user hits the play…"
1 hour ago
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Allison would you please make sure that Phoron's new link gets picked up "
1 hour ago
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Phoron's new live link  http://lifesmagickalweave.ning.com"
2 hours ago
Kos replied to sho allan's discussion '[TIP-NING 3.0] Add icon in menu tabs!!'
"I was able to do it but you're right; I wish they allowed for more characters in the Tab Name.…"
2 hours ago
CPA replied to sho allan's discussion '[TIP-NING 3.0] Add icon in menu tabs!!'
"Thanks Sho, I'm going to try this!"
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service