Vertical Centering an Image

Recently I had to vertically center an image, I tried all the css tricks. Making wrapper div as table and then inner div as table-cell with css property vertical-align:center. On the other side it’s very easy to do with JQuery. <div class=”image_wrapper”> <img src=”” alt=”” class=”my_image”/> </div>   jQuery $(window).load(function(){ //get the height of the …