Hi, The thing which i have observed is that if you try to set the padding property i.e padding:"20px 40px" .. you will get an error in IE but if you set "padding":"40px" it will work fine although it will not give the results what u trying to achieve ..
so you can set padding-left , right , top and bottom respectively .. Regards Umair On Jul 20, 4:38 am, djeyewater <showerhead...@hotmail.com> wrote: > I have a function that resizes an image (imgCur) and changes its > padding when a new image (img) is loaded like so: > img.onload = function(){ > var t = this; > //Animate current image to new image size > imgCur.animate({ > "width": t.width, > "height": t.height, > "padding": "20px 25px" > }, 750).attr("src", img.src); > > } > > Which works fine in FF, Opera and Chrome. But in IE6, 7 & 8 it doesn't > like changing the padding, and I get an error at line 835 in > jquery-1.3.2.js, which is: > style.left = ret || 0; > > If I check in the IE Script debugger, ret has the value "40px 50px", > which obviously isn't a valid value for style.left. "40px 50px" is the > padding of imgCur that is set in the CSS file. > But why is jQuery trying to set the CSS left property of imgCur to its > current padding?