Align main menu right on Dawn

Solved

Align main menu right on Dawn

jasminsharp97
Shopify Partner
105 1 33

I'm currently working on this site: https://maison-rouge-ny.myshopify.com/

Password: thifis

 

I'm trying to align the menu on my header to the right side of the screen, like this example:

Screenshot 2024-10-22 080526.png

 

 

I tried using this code, and it didn't work. What am I doing wrong?

nav.header__inline-menu {
   text-align: right;
}

 

Accepted Solution (1)

Shadab_dev
Shopify Partner
1443 74 161

This is an accepted solution.

Try this in base.css under everything. 

.header--middle-left{

grid-template-areas: 'heading navigation icons';

 grid-template-columns: auto 1fr auto;

column-gap: 2rem;

}

.header__inline-menu{

text-align: right;

}

Result:  

Shadab_dev_0-1729676900037.png

 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

View solution in original post

Replies 3 (3)

PageFly-Richard
Shopify Partner
5011 1120 1803

 

Hi @jasminsharp97 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
header.header {
    margin: 0;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    display: flex;
}
</style>

PageFlyRichard_0-1729648892362.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

Shadab_dev
Shopify Partner
1443 74 161

This is an accepted solution.

Try this in base.css under everything. 

.header--middle-left{

grid-template-areas: 'heading navigation icons';

 grid-template-columns: auto 1fr auto;

column-gap: 2rem;

}

.header__inline-menu{

text-align: right;

}

Result:  

Shadab_dev_0-1729676900037.png

 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
jasminsharp97
Shopify Partner
105 1 33

This solved it! Thank you!