Jump to content

Top Navigation Display Menu Centering


Recommended Posts

Hello everyone,

 

I tried to center the Top Horizontal Menu, I did follow a few others on google and sadly the result wasn't what I was looking for.

 

Previously I did the following, only problem is the text within the sub-menu's also end up centering and it looks funny. I would like to keep them left when they open.

 

Any help would be much appreciated.

 

Go to /themes/default-bootstrap/css/modules/blocktopmenu/css/superfish-modified.css
 
Change the .sf-menu
 
From:
.sf-menu {
  position: relative;
  padding: 0;
  width: 100%;
  border-bottom: 3px solid #e9e9e9;
  background: #f6f6f6; }
 
To:
.sf-menu {
  text-align: center;
  padding: 0;
  width: 100%;
  border-bottom: 3px solid #e9e9e9;
  background: #f6f6f6; }
 
And under .sf-menu > li, delete float: left; and add in display:inline-block;

 

 

:)

Edited by pinwheel (see edit history)
Link to comment
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
×
×
  • Create New...