-2

I try to put a photo under a block of text, but the colors of the photo are too strong and no longer understood what is written. I tried with comand : "opacity:0.5" but it doesn't work..

  • 3
    Add the HTML and CSS you have, in a snippet. – Razvan Zamfir Jan 06 '20 at 20:49
  • box-shadow,background-blend-mode,text-shadow and probably other method could be used. Clarify your question with enough code that demonstrate your issue if you really need help and efficient answers. – G-Cyrillus Jan 06 '20 at 20:51
  • Does this answer your question? [Can I set background image and opacity in the same property?](https://stackoverflow.com/questions/4183948/can-i-set-background-image-and-opacity-in-the-same-property) – Urel Jan 06 '20 at 20:54

1 Answers1

0

You can change the opacity of an element with the line opacity: 0.5; for half for instance, or you can set the background color as an rgba color, with the last variable indicating the desired alpha value

Libra
  • 2,544
  • 1
  • 8
  • 24