I am trying to change the background color of my navbar, but it's not working. This is my html :
<html>
<head>
<link rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="admin_header.css">
</head>
<body >
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="#"> <span class="glyphicon glyphicon-home"></span> Home page </a> </li>
<li><a href="#"> <span class="glyphicon glyphicon-off"></span> Log out</a></li>
</ul>
</div>
</nav>
</body>
</html>
This is my css:
.nav.navbar-nav li a{
color: white !important;
}
.navbar-default {
background-color: #3232ff !important;
}
Before, my css file was like below and it worked:
.nav.navbar-nav li a{
color: #3232ff !important;
}
Now, there is something weird going on, because before i was using the same css file with styles for the anchor link
color only. Now that I changed it and also added styles for the background color of navbar
it doesn't work.The color remains the same as before I made the changes.