PDA

View Full Version : Centering Tabs On the Navigation Bar



WebDizzy777
12-02-2013, 11:33 PM
1) Script Title:

Smooth Navigational Menu (v2.1)

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm

3) Describe problem:

How can I center the tabs? When using this navigation script the tabs start from the left. I still want the width to be 100%, I just want the tabs centered, not beginning from the left. How can I center the tabs? I have played with things such as text align center and margin 0 auto, however I am unsure how to fix the problem. Thank you very much in advance.

http://tinyurl.com/p4dd9qq

WebDizzy777
12-22-2013, 11:18 PM
Anybody :) ?

Beverleyh
12-23-2013, 07:57 AM
Try;


.ddsmoothmenu { text-align:center; }

.ddsmoothmenu ul { display:inline-block; }

If that doesn't work, just google something like "centering li inside ul CSS" and you'll find lots of results.

WebDizzy777
12-23-2013, 08:00 PM
Thank you very much, I was missing .ddsmoothmenu ul { display:inline-block; }