I've been attempting to add a gradient to my image, but it's not displaying properly
.asdf img {
background: rgb(2,0,36);
background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
}
<div class="asdf text-center tx-white">
<img style="height: 200px;" class="w-100 shadow-sm bd" src="{{url($xd->banner)}}"alt="">
</div>
Can anyone guide me on the correct method to display the gradient on the image?