I attempted to enhance the appearance of a button by removing its border and making the font bolder. I used this simple CSS code:
.button {
...
font-weight: 500;
border: none;
}
.button:hover{
font-weight:600;
border: 1px solid red;
}
However, instead of the desired outcome, I encountered this result: https://i.sstatic.net/U1eAt.gif
Can anyone provide an explanation and solution for this issue?