I am doing this:
var sId=id.toString(); var index=sId.substring(3); var mrg=index*221; var el=$(id); el.css(\'margin-left\',mrg+\'px\'); and el.css(\'marginLeft\
Set it with a px value. Changing the code like below should work
el.css('marginLeft', mrg + 'px');
try
el.css('margin-left',mrg+'px');