I just have started studying HTML and CSS, so I have a header with a few Il's and a logo between them, I set the height and width of the header so that I can change the background into a picture, when I changed it, the color of the background and the text was overflowing, so you couldn't read the text. I wanted to change the header opacity so that the background would be lighter and you could read the text, but it changed the opacity of all the header elements including the logo. The question is, how can you change the opacity of the background picture, but without changing the opacity of the text. Hope anyone will understand what I have written XD. Please ask questions if you didn't understand.
header {
padding: 15px;
height: 150px;
text-align: center;
font-size: 17px;
background-image: url("images1/Baled.png");
background-size: 100%;
background-position: center;
}
li {
display: inline-block;
line-height: 75px;
}
header .logo a {
background-image: url("images1/Newartisanweblogo.png");
display: inline-block;
background-repeat: no-repeat;
background-image: 1px;
width: 150px;
height: 80px;
text-indent: -9999999px;
background-size: 150px;
}
<nav>
<ul>
<li>
<a href="home.html"></a>Home</li>
<li>Menu</li>
<li class="logo"><a>Logo</a></li>
<li>Contact</li>
<li>Locations</li>
</ul>
</nav>