mflorezm Posted April 12, 2020 Share Posted April 12, 2020 Hi Guys: My site has two languages: English and Spanish. The Spanish menu fills the entire space betwen logo and search control. But as the words in english language are shorter, the menu does not fill the sapce and it is align to the left. What i want is to center the the menu items like the following image (modified in paint) 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 More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 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 More sharing options...
mflorezm Posted April 13, 2020 Author Share Posted April 13, 2020 Sorry, you are right. PS 1.7.6.4. Any ideas with css? Right now i will begin to try adding a new hook to split the menu from the search box. Regards, MFM Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 No hook needed. A moment please. Link to comment Share on other sites More sharing options...
mflorezm Posted April 13, 2020 Author Share Posted April 13, 2020 Evrything is default, classic template just with some mirror changes on customs.css Thanks, MFM Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 #header .header-top .menu { margin-bottom: .375rem; text-align: center; padding-left: 0px !important; width: 65%; } Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 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 More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 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 More sharing options...
mflorezm Posted April 13, 2020 Author Share Posted April 13, 2020 Great Job. Thank you very much for your help. Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 I will be glad to rate my posts by clicking on the gray heart below my posts. I gladly helped. Link to comment Share on other sites More sharing options...
mflorezm Posted April 13, 2020 Author Share Posted April 13, 2020 Like this? Thanks again. Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now