I recently implemented the toggler button (hamburger icon) code in my HTML, but I'm facing an issue where the hamburger icon doesn't appear and looks blank when I resize my screen or view it on a smaller viewport.
Here's the snippet of my HTML:
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="#">Friday Hero</a>
<button class="navbar-toggler navbar-light" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main-nav">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">ABOUT <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">CONTACT</a>
</vli>
<li class="nav-item">
<a class="nav-link" href="#">ADVERTISE</a>
</li>
<li class="nav-item">
<a class="nav-link login" href="#">LOGIN</a>
</li>
</ul>
</div>
</nav>
I attempted to modify the CSS colors thinking that might be causing the issue, but the icon still fails to show up. Any suggestions on how to troubleshoot this problem?