I am creating a website for the game that I am developing. I just started and I am working on the navigation bar. I want the logo text to be solid black, without transparency, but I want the light block to have opacity. Also the most effective way to do this. I am new to html and css.
Here is CSS
.navbar{
font-family:'Roboto', arial;
position: fixed;
}
.navbar #navbar-back{
background: white;
opacity: .7;
border-bottom:solid;
border-bottom-width: 1px;
border-bottom-color:#A4A4A4;
width: 100%;
height: 55px;
}
.navbar #navbar-logo{
font-size: 35px;
font-color: black;
opacity: 1;
}
Here is the HTML
<div class="navbar">
<div class="navbar" id="navbar-logo">
<p>Infinity</p>
</div>
<div class="navbar" id="navbar-back">
</div>
</div>
Thank you for your time!
source
share