Recently, I've been working on a project for the website . One of the main issues I've encountered is that the <body>
element is consistently 20px lower than it should be at the top. This has led to visible problems with the background gradient being repeated in the last 20px of the page. Oddly enough, when I open Firebug or any other developer panel, the repeating area actually increases in size.
I've attempted various solutions to this issue, but unfortunately, Firebug hasn't provided any helpful insights into what might be causing this behavior. I experimented with absolutely positioning the body element at the top, which did help somewhat, but the repetition glitch reappeared whenever I opened a browser panel from the bottom like Firebug.
After some troubleshooting, I discovered that there were two distinct issues at play. The first problem stemmed from a margin collapse, which was expertly resolved with assistance from @zzzzBov. The second issue was remedied by simply adding background-repeat: repeat-x;
to the body, thanks to guidance from @Alex.