View Full Version : Smooth Navigational Menu - Any Way to Center The Buttons?

02-13-2009, 05:43 PM
1) Script Title: Smooth Navigational Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm
3) Describe problem: I was wanting to know if there was a way to center the buttons on the menu. Right now its always aligned to the left so that there's always a gap on the right side of the navigation bar.
An even better solution would be is there a way to make all of the elements in the nav menu fill in the extra space on the end. Ive tried making the width of the buttons equal to the total width divided by the number of buttons but no luck.

Any help is appreciated. Thanks.

02-13-2009, 06:19 PM
This basically comes down to styling the menu so the top menu items do not use CSS's float:left to create its current look. I haven't had a chance to really play with this to come up with different usable styles not based on float:left unfortunately, but it's certainly doable. Another script that supports numerous styles to begin with is All Levels Menu, by way of the menu Generator (http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/generator.htm).