Could really use some help with background colors in HTML and CSS #21408
-
Hi, I have trouble understanding why I have such big white strips on the sides of my page (Pic attached). I’ve tried looking for a fix a while now but nothing seems to really work. Couldn’t find anything in my code that might cause this too. Appreciate any help. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
if that is a public project, you can send the direct link, it’s best, so we can take a closer look |
Beta Was this translation helpful? Give feedback.
-
It’s not a public repository. Any other way I could send relevant snippets of the code? |
Beta Was this translation helpful? Give feedback.
-
screenshots will do and pasting of code here |
Beta Was this translation helpful? Give feedback.
-
index.js ← the page that is in the screenshot
index.module.css ← the css module for the index page
global.css
gatsby-browser.js
|
Beta Was this translation helpful? Give feedback.
-
Found the solution to my problem. Thanks for anyone trying to help. |
Beta Was this translation helpful? Give feedback.
Found the solution to my problem. Thanks for anyone trying to help.
I created a global.css stylesheet and implemented it correctly this time to gatsby-browser.jsx.
You need to restart the development server after creating gatsby-browser.jsx so that’s why it didn’t show yet.
Thank you all.