There are two tabs that are in the active state and have 1px solid when hovering, but not in the standard state. The problem is that the border of both tabs, when you hover on the next from the active, becomes 2px. Tell me how you can fix it without moving the blocks.
.active, .off { float: left; background-color: transparent; border: none; outline: none; cursor: pointer; padding: 10px 20px; font-size: 15px; box-sizing: border-box; border: 1px solid #ccc; } .off { border: 0; } .off:hover { border: 1px solid #ccc; } <div> <button class="active">Активная</button> <button class="off">Вкладка</button> </div>