css responsive background

Solutions on MaxInterview for css responsive background by the best coders in the world

showing results for - "css responsive background"
Giulio
09 Jun 2020
1/* fill the entire container and crop the image if needed */
2background-size: cover;
3/* fit the image inside the container */
4background-size: contain;