Here I have two divs inside another div, the only problem is the white gap that is created between them.
.box{
width: 400px;
height: 400px;
border: 5px solid black;
margin: 20px auto;
}
.it1,.it2{
width: 200px;
height: 200px;
}
.it1{
background-color: aqua;
}
.it2{
background-color: brown;
}
<div class="box">
<div class="it1"></div>
<div class="it2"></div>
</div>
Maybe I'm just being picky or it could even be my OCD but I really need to know if I'm just doing something wrong. I could make the boarder bigger but that is just feels like a workaround.