I've been racking my brain trying to solve this. The goal is to have all the boxes neatly grouped together, but for some reason there's a massive gap between the main content and footer. Could someone lend a hand?
CSS
Below is the CSS code relevant to the three boxes...
body{
display: flex;
flex-direction: column;
justify-content: start;
flex-wrap: wrap;
height: 100vh;
width: 100vw;
margin: 0;
}
header{
background-color: white;
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
width:100vw;
height: 10vh;
margin: 0;
}
main{
background-color: #f1f1f1;
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
width: 100vw;
height: 85vh;
margin: 0;
}
footer{
background-color: #666666;
height: 4vh;
width: 100vw;
}
<body>
<header>
<div id="headercontentwrapper">
<div id="logowrapper"></div>
<div id="navwrapper"></div>
</div>
</header>
<main>
<div id="contentwrapper">
<div id="contentheaderwrapper"></div>
<div id="actualcontentwrapper"></div>
</div>
</main>
<footer>
</footer>
</body>
Even when I set MARGIN TO 0 FOR THE FOOTER, IT DOESN'T FIX THE ISSUE.