If I use an image along side a link, the navbar is getting bigger.
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<img src="..." /> // this is causing the problem
Me<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a>Sample 1</a>
</li>
<li class="divider"></li>
<li><a>Sample 1</a>
</li>
</ul>
</li>
</ul>
The result is http://jsfiddle.net/6xzwdwfr/18/embedded/result/. But how do I make it so that it looks like http://jsfiddle.net/6xzwdwfr/21/embedded/result/?
Basically, I want to make sure that adding the image doesn't cause the navbar to enlarge.
I tried lessening some of the paddings and margins in the nav*
classes, but it only made the matters worse.
How can I adjust it?