How to overlay image with a transparent background?

Asked

Viewed 28 times

0

I have an image in an img and I want to put a black background on it, for the image to be dark, I will use this in a :Hover, I already put a div on it with black background.

background-color: rgba(0, 0, 0, 0.5)

but nothing appears.

  • Take a look at my answer, that’s exactly what you need https://answall.com/questions/222088/nome-sobre-a-imagem-quando-mouse-passa-css/222122#222122

  • @If it is exactly the same thing, you can signal as duplicate.

  • It is not the same thing, the text appears on the image, that part I know how to do, but the background does not appear, if I take the image it appears.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.