I am working on a website using Twitter Bootstrap 3 and I have implemented the following navbar:
<div class="col-xs-12 col-md-10 col-md-offset-1">
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand">
Title
</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
...
</div>
</nav>
</div>
While this navbar looks great on desktop with some top margin, I am wondering if it is possible to make the .navbar-fixed-to-top apply only on mobile devices. Is there a way to ensure that on mobile devices, the navbar is always at the top without any top, left, or right margins?