Answers for "css slider background image"

CSS
0

css slider background image

.container .slider .slide.slide1 {
  background: url(1.jpg);
  background-size: cover;
  background-position: center;
}

.container .slider .slide.slide2 {
  background: url(2.jpg);
  background-size: cover;
  background-position: center;
}

.container .slider .slide.slide3 {
  background: url(3.jpg);
  background-size: cover;
  background-position: center;
}

.container .slider .slide.slide4 {
  background: url(4.jpg);
  background-size: cover;
  background-position: center;
}
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language