I have several li , whose display: inline-block is a menu.
The fact is that the active menu items
- adds a border to the
2pxliblock; - makes the font inside
libold.
So, when the text is made bold, the width li increases, then all the adjacent blocks on the right begin to jump (when the menu items of the active menu change!).
How to get rid of it (do not increase the width of li while increasing inside its text)?
Update
<ul class="type"> <li class="active"><a href="">Все</a> </li> <li><a href="">Обувь</a> </li> <li><a href="">Аксесуары</a> </li> <li><a href="">Детские магазины</a> </li> <li><a href="">Подарки</a> </li> <li><a href="">Прочее</a> </li> </ul> li display inline-block padding 7px 12px; margin-right 15px //add &.active border 2px solid #fdb913 //МАГАЗИНЫ border-radius 20px a border none font-weight bold color #b6b2a1 a font-size 18px display inline-block color textBlue border-bottom 1px solid #c1ddf1