eric1235711 Posted May 30, 2007 Share Posted May 30, 2007 hello I got the following code: <!-- ... --> <body onLoad="document.getlementById('loadingdiv').style.display='none';"> <div style="width:100%; height:99%; position:absolute; text-align:center" id="loadingdiv"> <!-- ... --> the div contains an "loading" message. the problem is that it works fine in the page from where I copied, but in the new page, it looks a lot missplaced: that 100% width looks like 150% and that text-align is almost text-align:right when I test without the div content, it keeps streching in the same way... It's driving me mad, I can't realize what's happening... I just copied and pasted... Quote Link to comment https://forums.phpfreaks.com/topic/53594-strange-behavior-with-fullfilling-div/ Share on other sites More sharing options...
leap500 Posted June 7, 2007 Share Posted June 7, 2007 Hi Try this: <div style="width:100%; height:99%; position:absolute; left:0px; top:0px; text-align:center;" id="loadingdiv"></div> Quote Link to comment https://forums.phpfreaks.com/topic/53594-strange-behavior-with-fullfilling-div/#findComment-270229 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.