How can I set both a linear-gradient and a background image on a specific div using styles in Reactjs?
I am struggling to achieve this, as I can only get either the image or the linear-gradient but not both simultaneously.
The image ends up overlapping with the linear gradient when I try to combine them.
I attempted the following solution:
leftAdArea: {
width: 380,
height: 580,
background: 'url(https://www.mahealthcare.com/assets/images/clinic/NursePhone.jpg) no-repeat , linear-gradient(135deg, #50A684 30%, #115E67 90%)',
}
Can anyone suggest a way for me to successfully use both an image and a linear-gradient as backgrounds?
Thank you!