<style> .span11{ float: left; width: 100px; margin-left: 1px; } .span11 img{ max-width: 100%; height: auto; } .wr{ width:303px; } </style> <div class="wr"> <div class="span11"> <a href="http://www.bgpics.ru/pictures/1536x2048/2043-leto-1536x2048.jpg"><img src="http://www.bgpics.ru/pictures/1536x2048/2043-leto-1536x2048.jpg" alt=""></a> </div> <div class="span11"> <a href="https://f.vividscreen.info/soft/66d0826256cf1c80b823ae39c38b36a9/Manhattan-Bridge-New-York-City-wide-l.jpg"><img src="http://s1.1zoom.me/big7/194/USA_Skyscrapers_Boston_466431.jpg" alt=""></a> </div> <div class="span11"> <a href="https://i.imgpile.com/2e15654b28e456cb505d2936902e7772.md.jpg"><img src="http://s1.1zoom.me/big3/803/374490-svetik.jpg" alt=""></a> </div> </div> https://jsfiddle.net/1zm997dc/8/
I clarify: so that all img were aligned and packaged in div class = "wr" regardless of the size of the image. All pictures must be equal in width and height between each other and exactly fit into wr container
overflow-x: hiddenfor the desireddiv? - Eugen Eray