You need the image inside html and the background set on the parent. Position relative needed in order to be able to use position absolute on the img inside div. You can change the opacity of img in css. You can use z-index if you want to change the order.
You can put both img inside html if you don’t want to use background-image.
2
Answers
I can’t tell what you tried, but would something like this work? Make sure to set the position to
absolute
.You need the image inside html and the background set on the parent. Position relative needed in order to be able to use position absolute on the img inside div. You can change the opacity of img in css. You can use z-index if you want to change the order.
You can put both img inside html if you don’t want to use background-image.