DaveG wrote:

How do I get the background-position?

$('.XXX').css("background_position");
$('.XXX').css("background-position");
$('.XXX').css("backgroundPosition");

...do not work.  Other variants like "background-color" work fine.
The problem seems to be that I'm trying to get the background position of a class. What I'm trying to do is copy the background-position attributes from one CSS class to another.

However, even trying on an ID, where this works:
   document.getElementById('ID').style.backgroundPosition;

This does not:
   $('#ID').css("backgroundPosition");

 ~ ~ Dave

Reply via email to