Large Space Above Header on Mobile
-
Hi,
I’ve read tons of info but still can’t figure out how to remove huge space above header on Mobile when scrolling down (it’s not the header itself).
I want sticky menu on desktop but not on Mobile. Below works fine except for huge space above the header on Mobile when scrolling down.
When I change position to fixed on Mobile, it looks perfect with no space but I want non sticky menu on mobile.
/* sticky menu on desktop */ .site-header { position: fixed; top:0; left: 0; right: 0; z-index: 999; box-shadow: 0 0 6px #eee8ff; } /* not sticky menu on mobile */ @media (max-width: 768px) { .site-header { position: relative; top: auto; box-shadow: none; } }
I copied the below from support here and made Mobile menu in single line in case it helps you help me…
/* mobile menu single line */ @media (max-width: 768px) { #masthead { text-align: left; } #masthead .menu-toggle { position: absolute; top: 7px; right: 0; width: auto; } .inside-header { position: relative; padding-left: 20px; margin-bottom:-20px; } .inside-navigation { position: static; } }
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Large Space Above Header on Mobile’ is closed to new replies.