gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.

Home Page:https://www.gatsbyjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a short how-to article for removing the 8px margin in html body

dianacheung opened this issue · comments

Preliminary Checks

Summary

I changed my background color to black and noticed a 8px margin in the html body. I did a google search and this is a common issue users run into. The quick fix should be added in a how-to article in gatsbyjs docs. I tried the fix listed at #28821 which removed the 8px margin.

Steps to Resolve this Issue

  1. Create a styles.css file at the root of your project
  2. Create a gatsby-browser.js at the root of your project and import the styles.css file