In my navbar I have put two dropdowns: one for a menu and another one for login. It works well when the width of the screen is bigger than 768px
. But when it is less than 768px
, dropdowns do not look as they looked before when the screen size is bigger.
Here you can see it in jsfiddle.
It's just a Bootstrap navbar
.
<!-- mobile menu dropdown -->
<ul class="nav navbar-nav pull-right mobile-menu col-xs-6">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-align-justify glfcn" aria-hidden="true"></span>
<!-- <b class="caret"></b> -->
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#">page 1</a></li>
<li><a href="#">page 2</a></li>
<li><a href="#">page 3</a></li>
</ul>
</li>
</ul><!-- mobile menu dropdown end-->
Just try with different screen sizes, you will see that the look gets changed. Why is this? How to solve this problem?