Answers for "how to make a image full screen in html as background"

4

how to make an image a full background in html

I have set the fixed position, you can set it to whatever you want.

.bg-image {
   width: 100%;
   height: 100%;
   position: fixed;
   right: 0;
   left: 0;
   top: 0;
   bottom: 0;
 }
Posted by: Guest on July-14-2021

Code answers related to "how to make a image full screen in html as background"

Browse Popular Code Answers by Language