How do I get just the x or y position of the background image using prototype?
- by ro
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was wondering whether I could get the background-position x/y values on their own?
I wish I could do something like this but sadly it doesn't work:
element.getStyle('background-position-x);
I guess this is because position comes in different forms like 'center' rather than just being generic.