I am having issue of large white spaces appearing on the right and the bottom of the web page. When testing for responsiveness of the web page.
I found a similar issues on stackoverflow
Solution in both the posts are same
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
}
I don't know where exactly to add this in the gatsby
, I found a post with a similar issue to mine regarding gatsby
How do I style the body / background?. Don't seem to understand what is the solution for this!
Found this post How to add a dynamic class to body tag in Gatsby.js? got some idea about using react-helmet
, how exactly I can use it?
Could anyone explain how I can set the html body
in gatsby, to avoid this large white space?
Resolution 1366x768
area under the bounder is the whitespace
Resolution 1920x1080
area under the bounder is the whitespace