Page starts with a scrollbar in the opening because there is a little bit of empty space (unintended) in the bottom. Body's height (therefore HTML's height because body's height is 100%) is taller than expected, so overflow-y occurs and scrollbar is being added. What causes this, any idea?
body {
background: url(pic.png) no-repeat center center fixed !important;
background-size: cover !important;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-position: 0% 50% !important;
overflow-y: auto;
width: 100%;
height: 100%;
}
.header {
display: block;
padding: 8px 15px;
overflow: hidden;
min-height: 46px;
position: absolute;
width: 100%;
top: 0;
z-index: 999;
}
.container {
display: flex;
justify-content: center;
margin-left: auto;
margin-bottom: auto;
margin-right: auto;
margin-top: 10vh;
flex-wrap: wrap;
}
.topics {
margin: 10px auto;
padding: 30px;
width: 300px;
min-width: 300px;
height: 360px;
display: flex;
justify-content: center;
align-items: center;
}
<div class="header">
<div class="header-left">
*BUTTONS*
</div>
<div class="header-right">
*BUTTONS*
</div>
</div>
<div class="container">
*CONTAINER ITEMS WITH A CLASS NAMED "topics"*
</div>