1 <div style="border:0px #ff0000 solid; width:100px;height:380px; line-height:380px; float:left;text-align:center;"> 2 <div style=" border:1px #ff0000 solid; height:380px;display: table-cell;vertical-align:middle;width:100px;"><img onclick="PrevImg()" src="images/PrevBtn.png" /></div></div>