WordPress.org

Support

Support » Themes and Templates » Gap between top of page and element for Toolbox theme

Gap between top of page and element for Toolbox theme

  • Joshua Mohan
    Member

    @joshua-mohan

    I’m using a child theme based on the Toolbox theme and I’m seeing a weird gap between the top of the page and the <body> tag.

    I know the problem is being caused by the get_header() function, because when I comment that function out the problem disappears. However, I have no clue where in the header this is being caused.

    The trick is, from what I can tell, this is not an issue with CSS! I’ve set the margins, padding and border all to 0 for html and body. I’ve tried messing with positioning and nothing.

    In Chrome, I can look at the underlying structure and I see nothing in the CSS or DOM that is causing this gap.

    Here is a screencap of me highlighting the html element:
    http://postimage.org/image/rfj55eg2x/

    Here is a screencap of me highlighting the body element:
    http://postimage.org/image/ga5dhx3o5/

    I can’t see anything in the CSS that is causing this, which is causing me to rip my hair out!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gap between top of page and element for Toolbox theme’ is closed to new replies.