While working on a custom Wordpress theme, I encountered an issue where the entire body of the page was slightly pushed down. Using Chrome's inspector tool, I identified the following problematic styles:
<style type="text/css" media="screen>
html { margin-top: 32px !important; }
* html body { margin-top: 32px !important; }
@media screen and ( max-width: 782px ) {
html { margin-top: 46px !important; }
* html body { margin-top: 46px !important; }
}
</style>
Deleting these styles in the inspector caused the body of the page to snap back to the top. Strangely, even after removing my entire stylesheet, the issue persisted. It seems like Chrome is injecting these lines, but I'm unsure why. Surprisingly, the layout looks fine in Internet Explorer and Microsoft Edge.
Edit: I attempted to clear the CSS cache in Chrome, but no change was observed. Edit: I also applied a CSS reset in the stylesheet, but the problem persisted.
CSS (still a work in progress):