The background-size Property

background-size: contain:

Lorem ipsum dolor sit amet.

background-size: cover:

Lorem ipsum dolor sit amet.

No background-size defined:

Lorem ipsum dolor sit amet.

Original image:

Flowers