CSS min-height: 100vh
is bigger than the viewport on Android Chrome. It is working correctly on desktop Chrome.
The purpose is to put the footer at the viewport bottom for small content in the center.
On android, the footer is not visible and need scroll up to see it.
.flex-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.header,
.footer {
flex: 0;
}
.center {
flex: 1;
}
<body>
<div class="flex-container">
<div class="header">top </div>
<div class="center">center </div>
<div class="footer">bottom </div>
</div>
</body>