1.img {
2 float: left;
3 width: 100px;
4 height: 100px;
5 background-size: cover;
6}
1<div class="img" style="background-image:url('http://i.imgur.com/tI5jq2c.jpg');"></div>
2<div class="img" style="background-image:url('http://i.imgur.com/37w80TG.jpg');"></div>
3<div class="img" style="background-image:url('http://i.imgur.com/B1MCOtx.jpg');"></div>