I have a simple navigation, and show the active clicked tab bold.
<ul class="nav navbar-nav>
<li><a href="#">Tab1</a></li>
<li><a href="#">Tab2</a></li>
<li><a href="#">Tab3</a></li>
</ul>
The clicked tab will always get the class="active"
.
li.active a {
font-weight: bold;
}
Problem: The size of the tabtext somehow changes a bit when I click it due to the bold font, cause the tabs beneath to move 1-2px.
Question: how can I prevent this?
When I use font-weight: normal
, then these movements are gone. So they are definitely caused by the bold font. But how can I force the nonclicked tab-texts to no move?