.container { width:425px; height:325px; margin:0 auto; border:1px solid #ddd; position:relative; overflow:hidden; } .container:hover .btn { display:block; } img { width:425px; height:100%; float:left; } .btn { display:inline-block; border:20px solid transparent; position:absolute; top:40%; cursor:pointer; opacity:.5; display:none; } .btn:hover { opacity:1; } #prev { border-right:20px solid pink; } #next { border-left:20px solid pink; right:0; } .imgCon { position:absolute; width:1700px; height:100%; }