logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 12-12-2009, 04:20 AM   #1
stlcards1
 
Join Date: Dec 2009
Posts: 12
Default Center Spy Navigation links

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.
Thanks
Chris
stlcards1 is offline   Reply With Quote
Old 12-12-2009, 10:36 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

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
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 12-13-2009, 04:58 PM   #3
stlcards1
 
Join Date: Dec 2009
Posts: 12
Default

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?
stlcards1 is offline   Reply With Quote
Old 12-13-2009, 05:45 PM   #4
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

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).
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 12-13-2009, 05:57 PM   #5
stlcards1
 
Join Date: Dec 2009
Posts: 12
Default

Thanks, I willl give it a try
stlcards1 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com