I followed this post for customizing navbar. meanwhile I came across link which uses a simple navbar class. So I borrowed this from there
.navbar.navbar-www {
background-color: #3E8956;
border-color: #3E8956;
}
and the nav
declared as follows in the above link:
<nav class="navbar navbar-fixed-top navbar-inverse navbar-www" role="navigation">
I had my custom.css loaded after bootstrap.css and my custom.css had the above css for navbar-www. even after that, my navbar is still in black color (navbar-inverse). but in the developer tools, I could see it is over-written to my custom.css background color for navbar-www.
I cannot figure out why this is happening and how to fix this?
EDIT: fixed a typo for the class .navbar .navbar-www