Is there a way I can put the 2 big boxes and the 4 smaller boxes in center without changing too much of the code? I tried align items, justify content, those don't seem to be working with the current code I have. Also tried to apply them to both the outer div and the boxes themselves, but I'm still lost
.header,
.navmenu {
height: 50px;
width: auto;
border: 1px solid black;
margin-bottom: 5px;
list-style: none;
}
.bigbox {
height: 200px;
width: 300px;
border: 1px solid black;
margin: 5px;
display: inline-block;
}
.smallbox {
height: 100px;
width: 150px;
border: 1px solid black;
margin: 5px;
display: inline-block;
}
.footer {
height: 75px;
width: auto;
border: 1px solid black;
}
<div class="header">
<p>header</p>
</div>
<div class="navmenu">
<li>1</li>
<li>2</li>
<li>3</li>
</div>
<div class="twobixboxes">
<div class="bigbox">
<p>big box 1</p>
</div>
<div class="bigbox">
<p>big box 2</p>
</div>
</div>
<div class="foursmallboxes">
<div class="smallbox">
<p>small box 1</p>
</div>
<div class="smallbox">
<p>small box 2</p>
</div>
<div class="smallbox">
<p>small box 3</p>
</div>
<div class="smallbox">
<p>small box 4</p>
</div>
</div>
<div class="footer">
<p>footer</p>
</div>