I am trying to give my png image a drop shadow, but every time I tried to do that, I am getting a rectangular box shadow. Can anyone please explain what I am doing wrong. Below is the code for reference:-
JS code:-
function FirstHeading(){
return(
<div>
<div className = "row">
<div className = "column1">
<h1>I<br/>AM<br/>HRITIK</h1>
</div>
<div className="column2">
<img className = "myPic" src={myPic} />
</div>
</div>
</div>
);
}
CSS:-
.myPic {
height: 577px;
width: 432px;
padding-top: 10px;
filter: drop-shadow(0 0 0.75rem crimson);
}
Please note, the pic is very irregular.
Edit1: Yes, My image is transparent. I edited it myself using photopea, also if there is something wrong with the photo how would I know that, if anyone has any clue please share.
Edit2: I am posting the adding the picture to my question, hope I did right. img