How can I change the transparency of the image through the opacity specified with the help of background-image without changing the transparency of the rest of the contents of the div ?
For example:
<div class="block" style="background-image: pic.jpg;"> <h1>Текст</h1> </div> Changing the opacity of the "block" class will naturally change the opacity and title, including, but you only need background-image