Jump to content

Moved header to bottom navigation and now there is a big gaping white space where header was

Recommended Posts



I added in code to move my header with the hamburger nav to bottom of the mobile screen, but now there is a big white gaping spot where the header used to be - how do I fix this / what is the issue? 

/*<---- Move header to bottom on mobile ----->*/
@media only screen and (max-width: 768px) {
    /* Sticky Header at the Bottom for Mobile */
    header#header {
  position: sticky!important; /* Maintain sticky positioning */
  bottom: 0; /* Stick to the bottom */
  width: 100%; /* Full width */
  z-index: 9999; /* High z-index to stay on top */
/* Adjustments for the mobile menu */
.header-menu {
 position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  height: auto;
  max-height: 100%;
  overflow-y: hidden !important;
  z-index: 1;
/* Move CTA Button Placement */
.header-menu-cta {
  position: sticky;
  bottom: 25%!important; /* this will adjust the position of the CTA Button, adjust it your liking */

Screenshot for reference - it's where that white space on top is. 


Thank you in advance!!!


Screen Shot 2024-02-25 at 11.34.46 PM.png

Link to comment
  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.