I have the following code below.
.imgcol1 {
background-image: url(https://picsum.photos/200/300);
background-repeat: no-repeat;
background-size: cover;
height: 190px;
width: 520px;
}
.col1 {
margin: 75px;
}
.grad {
background: linear-gradient(to right, rgba(102, 126, 234, 0.7), rgba(245, 245, 245, 0.7))
}
<div class="row vh-100 mt-5 d-flex justify-content-center">
<div class="col-6 imgcol1 col1 text-white">
<p>California</p>
<h2>Sacramento</h2>
<p>Esplora <i class="fa-solid fa-arrow-right"></i></p>
<div class="row grad">
</div>
</div>
</div>
I need to create a linear gradient as shown in the figure below.
I thought about adding a row on the column and putting the gradient in this row, it just doesn't work.
Can anyone kindly tell me how to do it?