I was able to do this with solid color background
.slide {
width: 100%;
height: 101px;
background-color: #fff;
background-size: cover;
clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
}
.slide_bg{
background-color: #f5f5f5;
padding-bottom:20px;
padding-left:20px;
}
.slide_end {
width: 100%;
height: 101px;
background-color:#f5f5f5;
background-size: cover;
clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
}
.slide_end_bg {
width: 100%;
background-color:#fff;
}
<div class="slide_bg">
<p>
asdasdasd
</p>
<p>
asdasdasd
</p>
<p>
asdasdasd
</p>
</div>
<div class="slide_end_bg">
<div class="slide_end">
</div>
</div>
How can I put a background image in a div with the clip-path diagonally?