.box1 { width:30px; height:30px; position:relative; top:10px; left:35%; } .box1 input { width:39px; height:39px; position:relative; z-index:6; opacity:0; } .box2 { width:38px; height:38px; position:absolute; z-index:5; top:3px; left:4px; } .box2 img { width:100%; height:100%; }