1
I need to darken/or render opaque a background photo in the html header. I tried to use ::after in relative position by applying a rgba, but it is not working. What solution could I give in this case?
I put the class directly in the html header.
And the image in class header (css)
Desde Jah Agradeco!!
<header class="header">
<div class="container">
  <a class="header-logo grid-4" href="#">
    <img class="" src="images/logo.svg" alt="Logo">
  </a>
  <nav class="header-menu">
    <ul>
      <li><a href="#">About</a></li>
      <li><a href="#">Careers</a></li>
      <li><a href="#">Events</a></li>
      <li><a href="#">Products</a></li>
      <li><a href="#">Support</a></li>
    </ul>
  </nav>
  <div class="title">
    <h1>Immersive <br> experiences <br> that deliver</h1>
  </div>
</div>
.header {
  width: 100%;
  height: 650px;
  background: url("../images/desktop/image-hero.jpg") no-repeat center;
  background-size: cover; 
}


Have you tried with
filter: brightness(50%);? Documentation here.– Augusto Vasques