My goal is to showcase links using a Bootstrap 3 dropdown for mobile screen sizes and a list for larger screens like desktops and tablets.
Dropdown example:
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
List example:
<ul class="list-inline">
<li>...</li>
</ul>
I plan on utilizing the responsive utility classes from Bootstrap to show/hide the markup based on media queries. However, I'm concerned about hiding links in this manner. Is there a better way to achieve my objective without concealing links?
Check out a demonstration of my concept here.