gordontickle
New Member
I made a button for my website which is a \[code\]div\[/code\] with a background image. I animated that button using jQurey, so that when the mouse hovers the button, it jumps 20px to the right and when the mouse leaves, it goes back to previous location.Problem is , when i zoom in (ctrl + scroll), the whole animation becomes a mess. The button moves rapidly left to right, and of course not where it supposed to be.I used \[code\]relative\[/code\] position and pixel unit to position the elements.How should i position things? \[code\]absolute\[/code\] or \[code\]relative\[/code\]? Pixel or percent?