> Don't know how I managed to forget it:
>
> http://www.texotela.co.uk/code/jquery/below/
>
> ... left -= parseInt(jQuery.css(el, 'marginLeft')) || 0;
In IE, jQuery.css(el, 'marginLeft') is often going to be 'auto', not the
real left margin size in pixels. The dimensions plugin uses the same
parseInt trick for its measurements so switching to it won't help. A true
solution for IE is not fun to do.
For a poor man's IE debugger, type javascript:alert in the address bar and
then follow it with an expression. So in your demo page you can see the
margin with this:
javascript:alert($('#myinput').css('marginLeft'))
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/