I have the following doubt: I have a div with a background img, I add a filter brightness, but that also affects what I have next to that image:
the html code:
<header>
<div id="logo-page">
<div id="top-bar">
<nav>
<a href="#" class="menu">home</a>
<a href="#work" class="menu">work</a>
<a href="#projects" class="menu">projects</a>
<a href="#gallery" class="menu">gallery</a>
<a href="#papers" class="menu">papers</a>
<a href="#" class="menu">contact</a>
</nav>
</div>
</div><!-- Logo -->
</header>
CSS:
#logo-page{
background-color: rgba(0,0,0,1);
background-image: url("../img/logo.jpg");
width: auto;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
filter:brightness(0.5);
}
The idea is that the nav o in its effect, what it adds inside is not affected by the filter