Further to this question, I added some JavaScript to this page to place the #container
div centrally.
However, what now happens is:
- page loads in default position
- JavaScript kicks in and repositions
#container
centrally
Because the main images are reasonably large, there's a noticeable delay before the content "jumps" into a central position.
As I mentioned in the original post, the normal way to center content horizontally is
#container { margin: 0 auto }
But I can't do this, because the layout (which I did not write), unnecessarily uses a lot of absolute positioning.
Is there any way I can eliminate this jumping effect, while keeping the content centrally located?
Thanks!