I am seeing some behavior in IE that I don't understand and that I don't see in
Firefox.
The offset is being shifted by the margins of the body. If I explicitly set the
body to
have no margin, it lines up, if I just leave the default, it is shifted. I can
demonstrate
it with:
<html>
<head>
<script src="jquery.js"></script>
<script src="dimensions.js"></script>
<script>
$(document).ready(function()
{
var offset = {};
var options = {}
$("#bar").offset(options, offset);
$("#movetest").css(offset);
});
</script>
<style>
#movetest{ height: 100px; width: 100px; background: #dddddd; border: 1px solid
black;
position: absolute;}
#bar {height: 100px; width: 100px; background: #eeeeee; border: 1px solid
#dddddd;}
</style>
</head>
<body>
<div id="bar">
</div>
<div id="movetest">
</div>
</body>
</html>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/