Wednesday, December 30, 2009

[jQuery] Issue with css() when appending marginLeft

Hi,

I've just found a wierd issue when using the css() function, and using
marginLeft.

When doing the below, it works:
$("#aDiv").css("bottom","40px","position","fixed").css("marginLeft",
"-176px");

But, when I try to consolidate, it ignores it, like so:
$("#aDiv").css("bottom","40px","position","fixed","marginLeft",
"-176px");

Does anyone know why?

Cheers,

Luke

No comments: