How to lessen space between logo and navigation menu in Dawn Theme?

Topic summary

A Shopify store owner using the Dawn theme wants to reduce vertical spacing between their logo and navigation menu in the header.

Initial Solution:
A CSS code snippet is provided to add to the theme’s base.css file, targeting specific header elements with padding and margin adjustments. This successfully resolves the original poster’s issue.

Ongoing Support:
Multiple users encounter similar spacing problems across different themes (Sense, Refresh) and devices (desktop vs. mobile). Each case requires customized CSS code because:

  • Different themes use different CSS class structures
  • Mobile layouts need media queries for responsive adjustments
  • Specific element selectors vary between stores

Common Solutions Include:

  • Reducing padding-bottom on logo links
  • Adjusting margin-top on navigation menus
  • Using @media queries for mobile-specific fixes
  • Modifying grid template columns for header layout

Current Status:
The thread remains active with new users requesting help. Solutions are provided on a case-by-case basis after reviewing individual store URLs and screenshots. Most issues are successfully resolved with custom CSS targeting specific header elements.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hey!!

I would like to reduce the space between my logo and the navigation menu. I just would like it to be shorter. Im using Dawn Theme.

I attached a screenshot so you can see what im talking about :slightly_smiling_face:

Thank you in advance for your help

Hi @yalostore

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
a.header__heading-link.link.link--text.focus-inset {
    padding-bottom: 0px;
}
#shopify-section-sections--20972431081768__header > div > header > nav {
    margin-top: 0px !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

thank you so much!!!

This helped me a lot

1 Like

Hi, I have tried this but it doesn’t seem to work. In sense theme → base.css. Nothing happens.

1 Like

Hello @Bodeane

This code is for the one who posted the problem, your store might have a different code. Would you mind to share your store URL? Thanks!

Hi, thanks for your quick reply. Hereby my link: https://b805c8.myshopify.com/

Its password protected.

Made it 1112 for you

1 Like

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

nav.header__inline-menu {
    margin-top: -10px !important;
}
h1.header__heading a {
    padding-bottom: 0px;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thanks it worked!

1 Like

Welcome, Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi ! both solutions didn’t work for me - can you help?

1 Like

Hi @Summar

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

nav.header__inline-menu {
    margin-top: 0px !important;
}

a.header__heading-link.link.link--text.focus-inset {
    padding-bottom: 0px !important;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @Made4uo-Ribe

I’m facing the same issue in my shop, however it is on the mobile version between the logo on the left and the navigation menu. Do you know how I could solve this (refresh theme)?

Thank you!

Hello @DTours

Can i check your store? Would you mind to share your store URL? Thanks!

Hi @Made4uo-Ribe ,

thank you for the repy!

The URL is dunk-tours.de and the password is “topnewyork”. I’m also attaching a picture to visualize the issue:

Thank you!

Thanks for the info, do you mean like this?

if it is check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

@media screen and (max-width: 750px) {
    .header-wrapper .header {
        grid-template-columns: auto 1fr;
    }
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi @Made4uo-Ribe ,

that’s exactly it, thank you so much!!! :slightly_smiling_face:

Would it also be possible to push the header a little bit up on the mobile view?

Sure, replace with this code then.

@media screen and (max-width: 750px) {
    .header-wrapper .header {
        grid-template-columns: auto 1fr;
    }
    a.header__heading-link.link.link--text.focus-inset {
    padding-bottom: 18px;
    }
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

This one worked as well, just changed the padding a little bit :slightly_smiling_face: Thanks again for your help!

I had opened another thread about this issue but did not get any working codes. If it helps you somehow, you could post the code there and I will mark your reply as solution :slightly_smiling_face: Here is the thread:

https://community.shopify.com/c/shopify-design/navigation-and-logo-all-the-way-to-the-left-refresh-theme/m-p/2732779#M715941%3Futm_source=communitymembers&utm_medium=email&utm_campaign=immediate_general