My webpage has a navbar that currently looks like this
Click here for an image example of the code output
This is the code I have written for the navbar:
<nav class="navbar navbar-expand-sm fixed-top bg-white">
<div class="container my-2">
<a href="/" class="navbar-brand text-dark font-weight-bold">Rakshit Deshmukh</a>
<button class="btn btn-outline-info ml-auto">Contact Me</button>
<button class="navbar-toggler" data-toggle="collapse" data-target="#collapseNav">
<span class="fas fa-bars text-dark"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="collapseNav">
<div class="navbar-nav">
<a href="#" class="nav-item nav-link text-dark h6 mx-3">Blogs</a>
</div>
</div>
</div>
</nav>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="afcdc0c0dbdcdbddcedfef9b8199819f">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="73111c1c07000701120333475d455d43">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
While inspecting the div with ID collapseNav, I noticed that even though it had the class of flex-grow-0, the inspect element showed the flex-grow value as 1. Can anyone help me figure out where I went wrong?