I've implemented an outlined button. in hover state, the button's text becomes italic. however, in hover state, the button's outline also shifts. specifically, the button's width becomes slightly smaller. See below for detailed demonstration:
I'd like the button size to stay the same i.e. the outlines should stay in the same place, not move. How to solve this problem? thx in advance
button {
border-width: 1px;
border-color: #EEEEEE;
font-family: "Adobe Garamond Pro";
font-weight: normal;
border-style: solid;
color: #595959;
}
button:hover {
font-style: italic;
}
<button id="loginbutton" type="button" title="Enter">Enter</button>