Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Responsive Content Image Re: Responsive Content Image

#131220
Paulie_D
Member

Be aware that `background-size: contain` will cause the image to shrink vertically when the viewport is reduced as well which might lead to some whitespace underneath it.

>Contain well scale the image to the largest size such that both its width **and its height** can fit inside the content area.

Try it and see.