7
7
75db772019-11-11 23:03:58
css
75db77, 2019-11-11 23:03:58

Why are the header and footer clipped when the browser/device width is changed in a React app?

I have a full-width header:
5dc9bd2cbb7f8033471731.png
I wanted to see how my application looks on a smartphone, and for some reason the header decreases:
5dc9bd41065b4923276440.png
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%;
}

What is the problem? How to fix? I've only seen this problem in React...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question