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

How can I increase spacing between menu items on the Dawn theme?

Solved

How can I increase spacing between menu items on the Dawn theme?

jackrivers
Excursionist
24 2 11

My header menu is bunched up, how can I put larger spaces between each item? Using dawn theme, here's my site:
https://bladelighter.com/pages/696969

 

 

Accepted Solution (1)

lunaworks
Shopify Partner
452 44 48

This is an accepted solution.

The menu links looks good to me but if you still want to increase the spacing you can do this.

 

@media (min-width:1366px){
.header__menu-item{
padding-right:3rem;
}

.header__menu-item:last-child{
padding-right: 0;
}
}

Add this to the bottom of your css file, it'll have a name either theme.css or base.css 

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.

View solution in original post

Replies 9 (9)

PageFly-Victor
Shopify Partner
7865 1786 3135

Hi @jackrivers .

 

I am Richard Nguyen from PageFly - Advanced Page Builder.

You can go to Onlinestore=>themes=> action=> edit code and add this code on file vendor.css

.list-menu--inline{
  padding: 3px 20px !important;
}


Hope this helps.

 

Best regards,

 

Richard - PageFly

lunaworks
Shopify Partner
452 44 48

This is an accepted solution.

The menu links looks good to me but if you still want to increase the spacing you can do this.

 

@media (min-width:1366px){
.header__menu-item{
padding-right:3rem;
}

.header__menu-item:last-child{
padding-right: 0;
}
}

Add this to the bottom of your css file, it'll have a name either theme.css or base.css 

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.
jackrivers
Excursionist
24 2 11

Great! That fixed it thanks. Out of curiousity, what's last-child?

lunaworks
Shopify Partner
452 44 48

Great! And the last-child will be the last menu link you have. I used it to remove extra spacing from the last menu link.

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.
designworks_
Tourist
10 0 4

@lunaworks thanks for provising this solution!

Unfortunately I cannot seem to increase the spacing between menu items still ... they are just too close together.

Can you provide another solution for Studio theme?Screenshot 2024-04-14 155939.png

lunaworks
Shopify Partner
452 44 48

Can you send a preview link to your store so I check it out for you?

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.
yayanaehen
Visitor
1 0 0

Hi, I know this is an old thread but I just came across this when looking for help for a similar issue I was having. I don't have any developing knowledge but I used your CSS code and changed it a bit to also increase the gap between my menu items. Just to double check if I've done the correct changes do you mind checking if the CSS code below is ok?

Screenshot 2024-07-30 114339.jpg

 

 

 

 

 

 

 

 

 

I basically copied the "padding-right" section and added a "padding-left" section and changed the "0rem" to "1rem" because I figured that this must be determining the gaps. Again, this is just by assumption asI have no developing knowledge... Please let me know if I did anything wrong if you have time.

Edit: forgot to add that I am using the Sitar theme 

lunaworks
Shopify Partner
452 44 48

Hey there, yes your css looks fine to me, and you're correct the 1rem which depending on your theme will either be 10pixels or 16pixels is what is being used to adjust the spacing.

If it doesnt work out lemme know 😎

If my solution fixed your issue, please mark my solution as solved.
In need of custom solutions? Please DM.
Storeowner4
Excursionist
13 1 4

Hi Lunaworks,

Preview
Those are great suggestions; I was keen to try them. Unfortunately I don't have a theme.css or base.css, only theme.liquid. My theme is Turbo (Out of the Sandbox). I would really appreciate it if you could give me a hand.
Thanks in advance.