Why is my header much larger on my Contact page?

My header is a normal size on every page except Contact where it takes up extra space at the bottom for no reason.

Hi @nikolarbrkic

I have checked, but it is showing the same on both pages.

Hello @nikolarbrkic ,

I hope you are well!

I have checked and confirmed that the header is same on the both the pages. There is no extra bottom space. If you remove the bottom space, it will be removed from the both the pages.

Appreciate the feedback from you two. I wonder why it looks ok on your computer.

This is what I see on Firefox.

This is what a friend sees on Chrome.

Hi @nikolarbrkic

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottow of the file:
@media screen and (max-width: 767px) {
  body.gradient {
    min-height: auto !important;
  }
}

I added the code but the space remains

Hi @nikolarbrkic

Right now, I can see two headers.

Yea I added that header to see what would happen and it “fixed” it. But it’s not a permanent fix cuz when I remove the second header it breaks again.

For what it’s worth, this level when I inspect is what is causing a larger area than any other page and isn’t there for other pages. I wonder what it is doing.

That is what happens on Chrome by the way.

When I “Inspect” on Firefox, the page “fixes” itself while in the Inspect view.

I guess it doesn’t actually “fix”. That level is still there increasing space if I drag the Inspect down.

On my firefox, the issue is not appearing. Also, I have checked the incognito browser of both firefox and chrome but the issue is not appearing.

Firefox

Chrome

You can custom CSS with my code here

@media screen and (min-width: 990px) {

.header:not(.header--middle-left,.header--middle-center) .header__inline-menu {margin-top: 0px;

}

}

@media screen and (min-width: 990px) {

.header:not(.drawer-menu).page-width {padding-top: 0px;padding-bottom: 0px;

}

}

@media screen and (min-width: 990px) {

.header--top-center .header__inline-menu>.list-menu--inline {margin-top: 0px !important;

}

}

.header__heading-logo {

max-width: 200px !important;

}

Then result: Header short height

Hi! This usually happens because the contact page has different CSS or extra spacing applied just on that template. A quick way to fix it:

  1. Open the contact page → right click the header → Inspect to see if there’s extra padding or margin compared to your other pages.

  2. Check if your theme adds special rules for .template-contact (or similar) in the CSS.

  3. If you spot extra spacing, you can override it by adding something like:

.template-contact .site-header {
  padding: 20px 0 !important;
  height: auto !important;
}

Adjust the values so it matches your normal header size.

Which theme are you using btw?

@nikolarbrkic I checked your issues on myend. It’s showing because body has some styles. please check this screenshot

I think you can add this style.

main {

min-height: calc(100vh - 280px);

}

@media (min-width: 1024px) {

main {

    min-height: calc(100vh - 425px);

}    

}

then you can see it correctly. Let me know if it’s not working after added this style.

Do I put this in the Custom CSS or the base code?

Hello, You can add it on anywhere. But I recommend it to put this code on Custom css

i have checked, but is show same for all pages. can you trying check again on your browser and now before please clear caches your browser and check.

I added this but it didn’t resolve the issue.

Hi, sorry to delay for reply. So it doesn’t work yet?