Closed (fixed)
Project:
Nice Menus
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2008 at 08:26 UTC
Updated:
4 Aug 2008 at 07:04 UTC
Hi,
I've been trying to make the Horizontal Menu align in the center of the page. The only thing i get when removing the float: left and adding the auto margin thing is that all the links are beneath each other. They are centered but not next to each other. Iam using a pretty much unchanged nice_menus_default_css. Anyone know where i can start looking or how i center a horizontal menu?
Comments
Comment #1
add1sun commentedBasically you should try centering the "block" not things within the menu itself. The block may be running at 100% width so you may need to set an actual width and then margin: auto; to get it to work.
The final answer is going to depend on your theme. It is easier to troubleshoot if you have a live example to look at.
Comment #2
dfrechen commentedThx. I had a look at my css. Changed the width of the "TD" part and voila it worked. unfortunately only in Swiftweasel. In Firefox it still looks strange.
The Live example ist www.grassyworld.net/v2
Comment #3
dfrechen commentedok found it know. Was another css thing. But thank you very much for pointing me in the right direction. I would have kept looking in the nice_menu css :)
Comment #4
Draven_Caine commentedOMG!! OMG!! I struggled with this off and on for the last few months seaching posts on drugal.org with no real answer. Please add this the the faq book for this module, and thanks again for the awsome module and answer.