I am doing stuff with ajax progress bars and stuff...
Basically I have a hidden div that says "Loading" in it, and beneath it I have a visible div with my content in.
When it is loading, it fades the content div out, makes the hidden div visible, and moves it via javascript/relative positioning to be in the middle of the content.
It looks quite badass but unfortunately when the div is made visible, even though its relatively positioned, it takes up a line so my content moves down.
Do you know how I can stop it from taking up space when it is made visible?
Edit: Someone removed the tag it seems
The loading div starts off display none, so it takes up no space, and then when it is made visible, it starts taking up space, even though it is positioned relatively.
I could use visible and non-visible, but then it would force my content window down all of the time.
It looks like absolute positioning is the way to go.
What I want to do is combine absolute and relative positioning. I am trying to get the absolute coordinates of the content div and setting its location that way, but without success yet.
Edit: I just re-read your answer and you have done exactly that. Thank you!