Is there a way to set only the horizontal background property? I've tried using background-position-x
and it works in Chrome, Safari, and IE, but not in Firefox or Opera.
Additionally, I would like to dynamically set the left value of the position.
var ppp = 10px;
var pLeft = ppp+' top";
jQuery(".bg-test").css("background-position" , pLeft );
Update
var ppp = jQuery(".someClass").width();
var pLeft = ppp+' top";
jQuery(".bg-test").css("background-position" , pLeft );