I have a header.php
file that I want to include in a CodeIgniter view. The header is shown but the problem is that the CSS styles that I have written inside the header.php
file are not applied and I don't understand why.
This is my header:
<html>
<head>
<title><?php echo $title;?></title>
<link rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body >
<style>
.nav.navbar-nav li a{
color: #3232ff;
}
</style>
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="#"> <span class="glyphicon glyphicon-home"></span> Home </a>
</li>
<li><a href="#"> <span class="glyphicon glyphicon-off"></span> Log out</a>
</li>
</ul>
</div>
</nav>
</body>
</html>
P.S The weird thing is, if I include the css as inline styling , it works