Its basic HTML rendering for parent and child. You just specified overflow:hidden for the parent, so that part of the child that is outside the parent border has been trimmed. But not where you hid the child div on the right, since you expect it to be under the parent div?
If you can change the parent and child divs, see how html will look.
#container { width: 200px; height: 200px; border-radius: 50%; background-color: orange; position: fixed; overflow: hidden; } #element { width: 100px; height: 100px; background-color: blue; position: absolute; top: 150px; left: 100px; cursor: pointer; }
<div id="element"> <div id="container"> </div> </div>
If you want to hide the child div, I think you need to specify display:none for it.
source share