gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.14k stars 10.33k forks source link

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

Open dianacheung opened 3 months ago

dianacheung commented 3 months ago

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 https://github.com/gatsbyjs/gatsby/issues/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
siddharthaasal commented 2 weeks ago

Is this still active? can I work on this?