SyntaxFix
Write A Post
Hire A Developer
Questions
Set it with a px value. Changing the code like below should work
el.css('marginLeft', mrg + 'px');