Can someone please help me with a glitch I'm experiencing that is causing my Navbar items to not align properly? (See Navbar preview)
I have attempted to fix it by adjusting the margin and padding manually, but my lack of Bootstrap knowledge has hindered my success.
#cart-icon{
width:25px;
display: inline-block;
margin-left: 15px;
margin-right: 20px;
}
#cart-total{
display: block;
text-align: center;
color:#fff;
background-color: red;
width: 10px;
height: 25px;
border-radius: 50%;
font-size: 14px;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e88a87879c9b9c9c9a8998a8ddc6d9c6db">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="{% url 'store' %}"> Luffy </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="#">Store</span></a>
</div>
</div>
<div class="form-inline my-2 my-lg-0 mr-auto">
<a href="#"class="btn btn-warning">Login</a>
<a href="{% url 'cart' %}">
<img id="cart-icon" src="https://stepswithcode.s3-us-west-2.amazonaws.com/m1-prt4/6+cart.png">
<p id="cart-total">0</p>
</a>
</div>
</nav>
Anyone know how to resolve this issue?