user1040899 user1040899 - 1 year ago 114
jQuery Question

jquery background-position-x issue

How to do background-position-x in Jquery ?


(an empty string)


0px 0px

What I want to do is:

$(this).css('background-position-x', '-162px');

How to make it work ?

Thank you very much.

Answer Source

background-position-x is not standard css and is not supoprted in all browsers. Take a look at solution at Background Position animation in jQuery not working in Firefox.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download