html - CSS Image swap on hover jumps with border -
a little background. have searched , searched. there plenty of answers adding border on hover none found table has 1px white border style whether hovering or not. image jumps on hover. have tried box-sizing: border-box
, adding same color border hover style. site old , not original developer. built using tables instead of divs. transitioning them new site want 1 updated in mean time new images. 1 black , white , color. when mouse on black , white, want turn color one. using sprite 400px (w) 240px (h). images 120px high changing position hover effect.
html
<td class="bottom right left stlouis"></td>
css
.stlouis { width: 400px; height: 120px; background-image: url(../images/stlouis.jpg); background-position: 0 0; } .stlouis:hover { background-position: bottom; }
thank help!
in case anyway looking fix on this, display: block;
fixed issue.
Comments
Post a Comment