11. fit the image

  - accepted / - tried

Suppose we have following image of ratio 1:4

Now in an HTML structure like below, please fit the image to the container div, just as if it is used as container's background-image with background-size:cover.

<div>
  <img class="image" src="..."/>
</div>

1.50x50

2.100x100

3.200x100

4.100x200

5.300x100

6.100x300

7.700x100

Discuss(3)