Jump to content

Archived

This topic is now archived and is closed to further replies.

conobrien

Navbar Alignment

Recommended Posts

conobrien

This is the first website i have created and i found that the navbar overhung the rest of the content. I have managed to reduce the width of the navbar with the CSS code:

 

 .navbar {
   width: 1000px;
   max-width: 1000px;
}
 
Is there a CSS code that i can add on to this in order to centre the navbar?

Share this post


Link to post
Share on other sites
Danny

Add the following to your custom CSS:

 

#site .section-navbar .navline {
float: none;
text-align: center;
}

 

#site .section-navbar .navline > li {
display: inline-block;
float: none;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×