# Space between header and first row on homepage

**URL:** <https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926>\
**Category:** Shapely\
**Created:** [May 11, 2019, 3:54pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926 "2019-05-11T15:54:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 11, 2019, 3:54pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/1 "2019-05-11T15:54:22Z")

</div>

Hi There

(sorry about all these requests - I’m in a panic, trying to recreate a site in a day, that i made in a few weeks, after Hosting Company broke the original site).

I have a space between the first row and header on the home page of the following site. I’d like to remove this.

Site - [https://stoptheworldcafe.live-website.com](https://stoptheworldcafe.live-website.com)

Please see screenshot

Thank you

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [May 13, 2019, 6:00am UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/2 "2019-05-13T06:00:16Z")

</div>

Good morning

is this already fixed? Please see a screenshot from me, there is no such line,

---

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 20, 2019, 1:38pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/3 "2019-05-20T13:38:03Z")

</div>

Hi there

This is still not fixed . . . see - [http://stoptheworldcafe.com/](http://stoptheworldcafe.com/)

There is some additional CSS in the site (at work at mo, I can’t get into the back end). But this isn’t working.

Any help would be very valuable.

Many thanks!

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [May 20, 2019, 3:00pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/4 "2019-05-20T15:00:38Z")

</div>

Good evenin

try this css:

.main-container {  
position: relative;  
top: -30px;  
}

Don’t know how but you are adding 30px somewhere in the template, code will fix it, if this only happens on homepage use .home seletor:

.home .main-container {  
position: relative;  
top: -30px;  
}

---

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 20, 2019, 6:20pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/5 "2019-05-20T18:20:13Z")

</div>

Thanks for taking a look.

Yes I know what you mean. I can’t see where that extra 30px is coming from. Can you see? It’s happening on all pages.

I tried your fix, the one for all pages. It works on desktop but not mobile.

Cheers

---

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 20, 2019, 8:19pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/6 "2019-05-20T20:19:35Z")

</div>

I used the ‘inspect’ menu item in Chrome. The space seems to be down to . . .

.mt20 {  
margin-top: 20px !important;  
}

If i reduce margin-top to 0px, the problem disappears. However i’m not sure where this is defined in the site.

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [May 21, 2019, 6:26am UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/7 "2019-05-21T06:26:36Z")

</div>

Good morning

mt20 is default class defined in the theme, you can use your code if the problem is solved

---

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 21, 2019, 6:48am UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/8 "2019-05-21T06:48:58Z")

</div>

Hi

I have no code. I was making the change within the ‘inspect’ feature in Chrome (where you can make temporary changes.

I still need help fixing this with a fix that works on mobile and desktop please.

Thanks.

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [May 21, 2019, 5:19pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/9 "2019-05-21T17:19:47Z")

</div>

Good evening

Try this code:

.main-container \> .header-callout {  
display: none;  
}

---

<div class="post-metadata">

**Author:** ![pablohoney](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/p/7feea3/32.png) [@pablohoney](https://colorlibsupport.com/u/pablohoney)\
**Post date:** [May 21, 2019, 5:53pm UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/10 "2019-05-21T17:53:32Z")

</div>

Thanks for taking a look.

That works, on desktop and mobile, when I use it with the following . . .

/_Removing extra space between nav ribbon and hero_/  
section.content-area.pt0 {  
padding-top: 0px;  
}

Thanks!

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [May 22, 2019, 3:45am UTC](https://colorlibsupport.com/t/space-between-header-and-first-row-on-homepage/23926/11 "2019-05-22T03:45:51Z")

</div>

Good morning

So, is everything now looking good? 🙂
