Currently, I am utilizing Bootstrap's 'List group' and facing a challenge in making it responsive. In mobile view, I would like the list to display as a dropdown button similar to a navbar.
I have attempted using nav classes, but unfortunately, it is not producing the desired outcome. Here is my code snippet:
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#side-menu-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<ul class="list-group collapse navbar-collapse" id="#side-menu-collapse">
<li class="list-group-item dropdown-toggle">Cras justo odio</li>
<li class="list-group-item dropdown-toggle">Dapibus ac facilisis in</li>
<li class="list-group-item dropdown-toggle">Morbi leo risus</li>
<li class="list-group-item dropdown-toggle">Porta ac consectetur ac</li>
<li class="list-group-item dropdown-toggle">Vestibulum at eros</li>
</ul>