Using an Image as my footer background in CSS

96 views Asked by At

I would like to know how I can use CSS to set an image as the footer background, I would also like the image to automatically resize depending on the screen resolution. If possible I would also love to make the footer a sticky-footer. I would really appreciate some help. Thanks in advance

1

There are 1 answers

0
repincln On

Something like that?

footer{
  width: 100%;
  height: 200px;
  background: url("http://lorempixel.com/800/600/nature/1/");
  background-size: cover;
}
<footer></footer>