Css how to make a background image reponsive background-image?

1
Sheridan Orn asked a question: Css how to make a background image reponsive background-image?
Asked By: Sheridan Orn
Date created: Fri, Oct 15, 2021 2:07 AM
Date updated: Wed, Sep 21, 2022 10:09 AM

Content

Top best answers to the question «Css how to make a background image reponsive background-image»

Here's how to create responsive background images with CSS: Use the background-size property to encompass the viewport. Give this property a cover value that will tell a browser to scale the background image's heights and width so that they always remain equal to or greater than the height/width of the device viewport.

Your Answer