Ok this line is influencing the position of the loading gif: #loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
But I’m still no nearerer in figuring out how to keep it dead central in whatever page in loads in
But to answer your question (as you figured it out) to center AP elements you must know the width and then all is easy (if you want vertical centering then you must know the height)
#element
{
position:absolute;
top:50%;
height:300px;
width:300px;
left:50%;
margin-top:-150px;/*half the heigiht value*/
margin-left:-150px;/*half the width*/
}
Off Topic:
Are you sure you won’t reconsider my offer of the iTunes? I wnat songs :(.