<!-- Navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#">GemCode [img] </a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</li>
</ul>
</div>
</div>
</nav>
This is my HTML for a fixed navigation bar.
.navbar-fixed-top {
background-color: #ecf0f1;
border-radius: 10px;
font-family: Arial;
opacity: 0.6;
height: 10%;
margin-top: 10px;
margin-bottom: 10px;
width: 70%;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
}
This is the CSS for the HTML above.
What I am trying to achieve is a transparent background with text that is completely opaque. I tried adding:
a. {
opacity: 1.0;
}
this did not work. I am using Bootstrap and I am unsure as to how to make the text opaque.