Jump to content

Change distance between categories in horizontal top menu


Recommended Posts

Hi prestashoppers,

I have 6 categories in one of the horizontan top menu. 5 of them are in a straight line but the 6th one shows up under the others. How can i get all 6 of them in one line (by changing the distance between them) or another way to get order them?

picture 1 is how it's now
picture 2 is how i like it to be

post-985064-0-78784500-1434491734_thumb.jpg

post-985064-0-33852700-1434491740_thumb.jpg

Link to comment
Share on other sites

Try in themes/YOUR_THEME/css/modules/blocktopmenu/css/superfish-modified.css and make two changes

This

.sf-menu > li > ul > li {
  float: left;
  width: 20%;
  padding-right: 15px;
}

to this 

.sf-menu > li > ul > li {
  float: left;
  width: 16%;
  padding-right: 15px;
}

And this

.sf-menu li li li a {
  display: inline-block;
  position: relative;
  color: #777777;
  font-size: 13px;
  line-height: 16px;
  font-weight: bold;
  padding-bottom: 10px;
}

to this

.sf-menu li li li a {
  display: inline-block;
  position: relative;
  color: #777777;
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  padding-bottom: 10px;
}

You can alter the width and font size if needed to suit your site

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...