How can I decrease size of my header on mobile only?

Hi, I’ve attached a photo below. I’d like the black header to have less of a margin on top and bottom.

Hi @Christine1065 ,

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.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:
  4. And Save.
@media screen and (max-width: 767px){
.wrapper-padded {
    height: 90px;
}
.wrapper-padded .grid__item {
    padding-top: 0px !important;
}
}

Hi @Christine1065

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the theme.min.css file:

@media only screen and (max-width: 767px) {

.grid__item.three-twelfths, .grid__item.six-twelfths {Padding-top: 0px !important; padding-bottom: 0px !important;}

}

Regards,

San

Hello @Christine1065

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->theem.min.css>Add this code at the bottom.

@media screen and (min-width: 768px){
.content-width, .wrapper-padded {
    margin-bottom: -50px;
    margin-top: -50px;
}
}

thank you! added this to my custom.css file and it worked!