View Full Version : Center Spy Navigation links

12-12-2009, 03:20 AM
Hi all,
I want to center the links in the main navigation bar but not in the submenus. I wanted to ask how before I go in and mess things up.

12-12-2009, 09:36 PM
put a text-align: center in the ul.MenuBarHorizontal rule and a text-align: left in the ul.MenuBarHorizontal ul rule. The second rule will overwrite the first one in sub and sub-submenus

12-13-2009, 03:58 PM
Thank you..that got them centered. The spacing between them doesn't look the same across since some of the links (words) are longer than others (e.g. "Government" compared to "Home"). Since these are not images and the boxes have a fixed width, there is probably no way to adjust for this is there?

12-13-2009, 04:45 PM
I'm not sure if setting the width in the ul.MenuBarHorizontal li to auto would do it for you or not. That should affect only the top-level menu. Then you might need to adjust the padding in the link tags. (or it might not work at all).

12-13-2009, 04:57 PM
Thanks, I willl give it a try