How do i make an image fit my background in html?

1
Larry Hegmann asked a question: How do i make an image fit my background in html?
Asked By: Larry Hegmann
Date created: Sun, Jun 27, 2021 9:12 AM
Date updated: Sat, Jun 25, 2022 8:56 AM

Content

Top best answers to the question «How do i make an image fit my background in html»

Using CSS, you can set the background-size property for the image to fit the screen (viewport). The background-size property has a value of cover . It instructs browsers to automatically scale the width and height of a responsive background image to be the same or bigger than the viewport.

Your Answer