Using width: 100%

Beautiful Nature Landscape

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.

Beautiful mountain landscape with a turquoise lake and colorful flowers

Resize the browser window to see the effect.