What would be the best way to rescale a background image in a div when the viewport is made smaller?

Thank you in advange.