Answer the question
In order to leave comments, you need to log in
Why are the header and footer clipped when the browser/device width is changed in a React app?
I have a full-width header:
I wanted to see how my application looks on a smartphone, and for some reason the header decreases:
The same problem with the footer ....
html:
with this css:<div className="header"> </div>
.header {
overflow: hidden;
background: green;
box-shadow: 0 0 15px rgba(0,0,0,0.5);
width:100%;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question