Using width: 100%

If the width property is set to 100%, the image will scale up and down. It will even scale up to be larger than its original size.

Resize the browser window to see the effect.