When I use a jQuery .animate() function to move an absolute positioned container, Firefox, Internet Explorer, and Opera correctly move the container to the top. However, in Chrome, the container jumps to the top and then moves down 200px from the margin.
Here is the jQuery code:
$("#indexbox").animate({top: "0", marginTop: "0"}, 500);
And here is the CSS styling for #indexbox:
#indexbox {
position: absolute;
width: 500px;
left: 50%;
top: 50%;
margin-left: -250px;
margin-top: -200px;
}
If anyone has any suggestions or solutions, please let me know. Thank you!