I am struggling to get a linear gradient to display over a background image. Despite trying various solutions from other questions, I still can't get it to work with my current code...
.bottom-pic {
width: 100%;
height: 425px;
background-image: url("bottom-img-3.png");
background-size: cover;
background-repeat: no-repeat;
background-position: 0 -255px;
position: relative;
}
.overlay {
background: linear-gradient(-180deg, #20202C 34%, rgba(32,32,44,0.00) 81%, #20202C 100%);
}
Despite implementing this code, the gradient is not appearing as expected.