Answer the question
In order to leave comments, you need to log in
How to make a slick background slider?
I'm doing something wrong, the
image is not stretched in height, for some reason it becomes a background for the text
<div class="carousel">
<div class="banner_slider_wrap">
<div class="banner_slider">
<div class="slide-1">
<h2 class="title">
Множество оригинальных,
непохожих на европейские
модели рюкзаков
</h2>
</div>
<div class="slide-2">
<h2 class="title">
Множество оригинальных,
непохожих на европейские
модели рюкзаков
</h2>
</div>
<div class="slide-3">
<h2 class="title">
Множество оригинальных,
непохожих на европейские
модели рюкзаков
</h2>
</div>
<div class="slide-4">
<h2 class="title">
Множество оригинальных,
непохожих на европейские
модели рюкзаков
</h2>
</div>
</div>
</div>
</div>
.carousel {
.banner_slider {
width: 100%;
height: 100%;
.slide-1 {
background: url(../../img/Background2.png) center (center/cover) no-repeat;
width: 100%;
height: 100%;
}
.slide-2 {
background: url(../../img/Background2.2.jpg.png) center (center/cover) no-repeat;
width: 100%;
height: 100%;
}
.slide-3 {
background: url(../../img/Background2.3.png) center (center/cover) no-repeat;
width: 100%;
height: 100%;
}
.slide-4 {
background: url(../../img/Background2.4.png) center (center/cover) no-repeat;
width: 100%;
height: 100%;
}
.slick-next {
background: url(../../icons/knopka_vpravo_139.png) center (center/cover) no-repeat;
font-size: 0px;
opacity: 0.6;
background-size: 80%;
border: 0px;
width: 118px;
height: 108px;
position: absolute;
right: 250px;
top: 38%;
margin-top: -73px;
z-index: 10;
}
.slick-prev {
background: url(../../icons/knopka_vlevo_138.png) center (center/cover) no-repeat;
font-size: 0px;
background-size: 80%;
opacity: 0.6;
border: 0px;
width: 118px;
height: 108px;
position: absolute;
left: 250px;
top: 38%;
margin-top: -70px;
z-index: 10;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question