Can someone help me with a solution to switch between nav-stacked nav-pills
for mobile and non-nav-stacked nav-pills
for other devices using Bootstrap?
For instance, on a desktop:
<nav>
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="index.html">About</a></li>
<li role="presentation"><a href="services.html">Services</a></li>
<li role="presentation"><a href="pricing.html">Pricing</a></li>
<li role="presentation"><a href="contact.html">Contact</a></li>
</ul>
</nav>
And on mobile:
<nav>
<ul class="nav nav-pills nav-stacked">
<li role="presentation" class="active"><a href="index.html">About</a></li>
<li role="presentation"><a href="services.html">Services</a></li>
<li role="presentation"><a href="pricing.html">Pricing</a></li>
<li role="presentation"><a href="contact.html">Contact</a></li>
</ul>
</nav>