Jump to content

How to center Main Menu


mflorezm

Recommended Posts

Hi Guys:

My site has two languages: English and Spanish.

The Spanish menu fills the entire space betwen logo and search control.

image.thumb.png.71c2c1cae2a57ca14411b75590892ac6.png

But as the words in english language are shorter, the menu does not fill the sapce and it is align to the left.

image.thumb.png.9474931875b47841b72a59efa2a178be.png

What i want is to center the the menu items like the following image (modified in paint)

image.thumb.png.7daa953fb8b94c8daa7889d7fe9b0514.png

I have been trying to center the menu with custom CSS without no sucess.

Any Help will be apreciated.

Thanks,

MFM

 

 

 

Link to comment
Share on other sites

All of us forget to include the PrestaShop version in the post or topic title.
Differences between versions are big !!!
It is also forgotten to add if it is the default template and default module !!!

Then it is difficult to advise and in the end a lot of answers are needed, which unnecessarily take the time of the counselors.

Link to comment
Share on other sites

responsive for tablet and PC:

/* tablet */
@media (min-width: 768px) and (max-width: 1024px){
    #header .header-top .menu {
        margin-bottom: .375rem;
        text-align: center;
        padding-left: 0px !important;
        width: 50%;
    }
}

/* desktop */
@media (min-width: 1024px) { 
    #header .header-top .menu {
        margin-bottom: .375rem;
        text-align: center;
        padding-left: 0px !important;
        width: 65%;
    }
}

 

Link to comment
Share on other sites

space between links

.top-menu a {
    font-weight: 600;
    /* padding: top right bottom */
    padding: 0.1875rem 0.625rem 0.375rem;
}

 

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