We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Centre Aligning Menu

Solved

Centre Aligning Menu

GS-Web-Design
Tourist
15 0 1

Please Help! Trying to centre Align my menu as it is off centre. It's has the same space between the logo (left) and search/cart (right) but not centre on the screen. 

GSWebDesign_0-1711800740346.png

 

 
 
 
Accepted Solution (1)
Raj-webdesigner
Shopify Partner
363 90 90

This is an accepted solution.

Try This One 

add This Css in your base.css File

@media screen and (min-width:989px){
    nav.header__inline-menu{
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
    }
}
body.gradient header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
}
.list-menu--inline {
    justify-content: center;
}

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


View solution in original post

Replies 6 (6)

niraj_patel
Shopify Partner
2391 516 516

Hello @GS-Web-Design 
Can you share store URL?

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
GS-Web-Design
Tourist
15 0 1

Raj-webdesigner
Shopify Partner
363 90 90

Add This Css In Your Edite code > base.cs File

@media screen and (min-width:990px){
  .header.header--middle-left {
      grid-template-columns: 1fr 1fr 1fr !important;
  }
  nav.header__inline-menu {
     text-align: center !important;
  }
}

 

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


GS-Web-Design
Tourist
15 0 1

Hi there,

I applied this code but it did not resolve the issue. It creates an even gap between the logo (left) and search (right) but does not centre the menu with the page

Raj-webdesigner
Shopify Partner
363 90 90

This is an accepted solution.

Try This One 

add This Css in your base.css File

@media screen and (min-width:989px){
    nav.header__inline-menu{
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
    }
}
body.gradient header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
}
.list-menu--inline {
    justify-content: center;
}

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-Mail@gmail.com


GS-Web-Design
Tourist
15 0 1

Perfect! Thank you so much 🙂