My Bootstrap 4 css file isn't working properly and I need space for my navigation bar.
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-bottom">
<div class="container">
<a class="navbar-brand" href="#">Start Bootstrap</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</div>
I've also added this code:
.navbar-nav>li{margin-right:20px;margin-left:20px;}
Interestingly, this code only works when added directly to the index file, not when included in the bootstrap.min.css file, even though the CSS file is in the correct directory.
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="all">
How is this possible?
Why does the .fixed-bottom class impact my navigation code without linking the CSS file? The .fixed-bottom class is in bootstrap.css which is not included in the meta tag, only bootstrap.min.