Closed (fixed)
Project:
Nice Menus
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2009 at 07:22 UTC
Updated:
9 Feb 2012 at 15:54 UTC
Hi,
I searched through the issues but can't find a solution that works.. I'm trying to make my nice menus fluid so it stretches 100% across the page at all times.
The only way I've been able to do this so far is with this code:
ul.nice-menu li { width: 11.1111% }
^^^ I have 9 links in the menu, so I divided 100 by 9 to get that 11.11111% shown above ^^^
The problem with this code is that it doesn't center all my links properly (though I have the css to center them), and when I add background images they don't space properly.
I tried div#nav { 100% } but that didn't work either.
Any other suggestions?
I'm using Drupal 6.13.
Thanks for the help! Great module btw!!!
Comments
Comment #1
mxer269 commentedugh.. sorry its late.. i meant div#nav { width: 100%; } for the code above
Comment #2
mxer269 commentedupdate: I've tried everything I can think of. Can someone help? Here's my css. I'm using the horizontal (down) menu.
Thanks!
Comment #3
mxer269 commentedfixed it myself
Comment #4
add1sun commentedComment #5
mxer269 commentedI should explain how I fixed it:
The problem was that I had the text-align: center code in the a# tags. To fix it, I simply removed the code from those tags and placed one text-align: center code in ul.nice-menu li {}.
Comment #7
ressaAdd this CSS to your style-sheet to expand the Nice Menu to 100% width. This example works for a menu with four menu items, so if you have eight items you will have to change
width: 25%;towidth: 12.5%;.