Jump to content


Photo
- - - - -

center the second navigation under the feature area


  • Please log in to reply
1 reply to this topic

#1 helvetik_a

helvetik_a

    Advanced Member

  • Members
  • 99 posts
  • Locationrome - italy
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 19 July 2012 - 04:59 PM

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;}

Posted Image

thx
Corina

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 19 July 2012 - 05:04 PM

Text-align: center won't center the navigation. Rather, it's for center aligning text within a container. Try adding this CSS attribute for #secondnav ul:

Please Login or Register to see this Hidden Content