Jump to content

How to vertically center the nav bar for a bigger logo?


Burak KAYMAKCI

Recommended Posts

Well hello everyone,

 

I am using default PrestaShop theme and I am using a logo bigger than the size suggested in the admin panel.

Having that said, how do I vertically center the nav bar according to my logo?

I can just do it using padding-bottom and top but I don't know if that's the correct way of doing this.

 

5ace550d710a7_Screenshot-2018-4-11YremTuzKayaTuzuveTuzLambas.thumb.png.0c5bacd8a617359f1241729a70088e55.png

Here is a screenshot of the header. What I want to do is that I want to vertically center the nav bar and the search bar according to my logo size.

 

Cheers!

Edited by Burak KAYMAKCI
SS added (see edit history)
Link to comment
Share on other sites

hello
in this case the best will be a padding-top (or margin-top)

there is a chance that it will be necessary to build css media queries for better appearance of the menu on mobile devices

 

can you please share na url?

i will suggest the code to use

Link to comment
Share on other sites

9 hours ago, vekia said:

hello
in this case the best will be a padding-top (or margin-top)

there is a chance that it will be necessary to build css media queries for better appearance of the menu on mobile devices

 

can you please share na url?

i will suggest the code to use


Well hello,

Actually I fixed the problem as you said. I added some css to the custom.css but I don't know whether it's the best practice or it may have any side effects though. Now everything seems to be working fine except that the logo is bigger so in the mobile version nav bar is a bit short. What can I do for that ?

Here is an SS from mobile version  :

5ad1b28e0da09_Screenshot-2018-4-14YremTuzKayaTuzuveTuzLambas(2).thumb.png.fb60bee9a745893b20b72952d374b8bf.png

I didn't really get what you meant with "na" URL but here is the URL 

Thank you for your response.

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