[Resolved] Unwanted gap between page header and footer in mobile view

Home Forums Support [Resolved] Unwanted gap between page header and footer in mobile view

Home Forums Support Unwanted gap between page header and footer in mobile view

  • This topic has 5 replies, 2 voices, and was last updated 6 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #556140
    Larry

    Hi!

    I’m setting up a page that has the content in the header area and it displays w/o a gap between the header and footer on the desktop view, but has a gap in the mobile view on both Android and iOS devices.

    http://save.boulderwordpress.com/our-brands/

    So far all the other tweaks I’ve made have been pretty straight forward to change, however eliminating this gap has me mystified…

    Thanks

    Larry

    #556197
    Tom
    Lead Developer
    Lead Developer

    That’s your content padding.

    You have the top/bottom padding set to 0 on desktop, but it’s set to 30px on mobile.

    You can adjust that in the Customizer, or just hide the content on that page:

    #page {
        display: none;
    }
    #556614
    Larry

    Thanks!

    #556634
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

    #557274
    Larry

    I have a question about using this bit of code

    #page {
    display: none;
    }

    Do I target that specific page by changing the css this way?

    #our-brands {
    display: none;
    }

    Thanks!

    #557323
    Tom
    Lead Developer
    Lead Developer

    You can target the page by using the page-id-xx class in the <body> element.

    So if my page ID is 10, I would do this:

    .page-id-10 #page {
        display: none;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.