In the following code, shouldn't the margin between .box1
and .box2
be 20px as the .box1
has 10px bottom margin and .box2
has 10px top margin.
<div class="box">
<div class="box1"></div>
<div class="box2"></div>
</div>
CSS:
.box1{
margin-bottom: 10px;
}
.box2{
margin-top: 10px;
}