Originally Posted by blaze4218
the css rule that you used to center the div
margin: 0 auto; works by using the dimensions of the div to center it, how ever if jQuery sets the width dimension to 0px in the
$("div").hide(); function it would effectively move the div to the left of its container.
I would test this by changing the auto margin rule to a static
left:50px . If it starts at 50px, and doesn't jump on completion: you have your answer.
Nope, got the same results.
You know maybe I should just make the myDiv_1, 2, 3 & 4 div's a container and then put a div (which I can center) within that div. And let the myDiv have a 100% width. I think this will make my life a bit easier to manage!
“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.” ~ Mark Gibbs