Recently experiment with float and found overflow: hidden
behaviour difficult to understand.
.child {
width: 100px;
height: 200px;
background-color: #afe;
overflow: hidden;
}
img.fl {
float: left;
}
<img class="fl" src="./images/bdlogo.png">
<div class="child">
</div>
When there is "overflow: hidden
" in child class, div child will not be overlayed by the picture floated. But if I delete "overflow:hidden", div child will be hidden by the floated picture.