Proportional square scalable image
.img-wrapper{ width:100%; height:0; padding-bottom:50%; overflow:hidden; } .img-wrapper img{ top:0; left:0; position:absolute; width:100%; height:auto; }