Just getting started with Bootstrap and facing an issue. I want to include a collapsed user icon that expands when clicked. However, when I add the navbar-toggle
class, the icon disappears completely. Without it, the icon appears but doesn't collapse on click. What am I doing incorrectly? How can I make sure the icon opens and collapses as expected?
<div class="navbar navbar-default navbar-inverse visible-sm" >
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand collapsed" data-toggle="collapse" data-target="#navbar-collapse-account" ><i class="fa fa-user" aria-hidden="true"></i></a> // I attempted to change the class to "navbar-brand pull right navbar-toggle collapsed", but then the user icon disappeared
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-account" data-text="Login" data-class="login"> // This section doesn't expand as expected
</div>
</div>
</div>
</div>