I have an object that have a background with background-position “top right”
I want to move this background-position up by 10px (on hover), but as soon I change the values, the new value is inserted from the 0,0 point (top left) but I want (top right)
Is there any 100% CSS solution to this?
I think this is what you want:
Giving it a
background-position:100% 0sets it to the top right corner. Then minus10pxfrom the height on hover.Example: http://jsfiddle.net/jasongennaro/Teyfj/
Height, width, and border are for example only