8 Replies
Share your code, but in general don't put width-changing properties in :hover
That includes
border
If you must have the line around the outside, use outline
what you can do, for this one, is to do not remove the border on hover
If you have a border, if you set it to transparent and then a different colour on hover it won’t jump
or just ... leave it alone
leave it the same color as the bg
sometimes, doing absolutely nothing is the best option
@Jochem but outline is for other mining ?!
"other mining"?
try what i said: just leave the border alone on hover
thats all you have to do
dont mess with outline (despite being a good suggestion), transparent borders and stuff like that
just dont do anything on hover
https://jsfiddle.net/y128dnq5/ <-- check this out
the "good" version doesnt move because i dont touch the border on hover
the "bad" version moves because i remove the border
other meaning i mean is to use for other reason