Centering the DIV menu
-
Hello,
I would like to center my DIV menu but I’m having some trouble.
I’ve tried adding text-align:center; in a few places, and once I take away “float:left;” from the CSS #nav li, the text centers right down the page. I want to the menu to stay on one line centered on the page.
Here’s my CSS:
#nav { width:auto; padding:12px 0 0; } #nav ul { height:50px; text-align:center; } #nav li { float:left; display:inline; width:auto; } #nav li a { font-size:13px; font-weight:400; display:block; padding:15px; border-bottom:none; }
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Centering the DIV menu’ is closed to new replies.