• 0
Sign in to follow this  
Followers 0

center the second navigation under the feature area

Question

Posted · Report post

Hi. I am trying to center the secondnav under the feature area. These are the selectors i found with firebug, It seems that the "text-align:center"tag does not working... Any suggestions? #secondnav.container{margin: 0;} #secondnav ul{ list-style:none; margin:0; } #secondnav .secondnav_menu { margin:0 0 0 500px; } #secondnav ul li{float: left; text-align:center;} #secondnav li a{ /*display: block;*/ padding: 3px 8px; border:none;} zwBbF.png thx Corina

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Text-align: center won't center the navigation. Rather, it's for center aligning text within a container. Try adding this CSS attribute for [b]#secondnav ul[/b]: [code]margin-left: 500px;[/code]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0