I am having some trouble with the sprites that I’m using for the social icons in the sidebar. I cannot figure out how to get rid of the slight shift when you hover over them. If I change the background position by one pixel in either direction, the problem gets worse. What am I missing?
It may just be that the two versions of each image don’t match exactly. How did you create the sprite? I normally create one version, then duplicate it and modify the copy, so that I know the two are exactly the same (except for color etc.). I superimposed both images in Ps and they are fractionally different.
Yes, I found that too: the drawing program has made some nearly visible differences.
[CENTER] enlarged[/CENTER]
If you compare the circles and letters in the upper and under half, there are small differences. Some letters seem to be “half a pixel” down (by the half transparent points), but other letters not. So with css positioning 1px up or down: always wrong!
I’m always working with help lines in a separate layer to get it exactly the same.