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:
Here is a screencap of me highlighting the body element:
I can’t see anything in the CSS that is causing this, which is causing me to rip my hair out!
- The topic ‘Gap between top of page and element for Toolbox theme’ is closed to new replies.