.box { position: relative; width: 100px; height: 100px; background: url(...); } .box-2 { position: absolute; display: none; left: 50%; height: 50%; transform: translate(-50%, -50; width:12px; height:12px; background: url(...); background-size: 100% 100%; } .box-2:hover { display: block; }
<div class="box"> <div class="box-2"></div> </div>