Page 1 of 1

[SOLVED]PHP Textbox Onmouseover (Style Problem?)

Posted: Sun Jun 29, 2008 7:39 pm
by sebthib55
I created a textbox that appears once you hover over a play button displaying the game's description. I got the text to center, but everything in the textbox seems indented and pushed to the right.

Image

Code: Select all

echo"<div id='popup$g[0]' style='position:absolute;border:1px solid #333;background-color:#DDD;color:#000;width=175px;display:none;'>
<ol>
<center>$g[2]</center>
</ol></div><br>";
 
?>
<a href='Arcade.php?play=<?php echo $g[0] ?>' onmouseover='document.getElementById("popup<?php echo $g[0] ?>").style.display=""' onmouseout="document.getElementById('popup<?php echo $g[0] ?>').style.display='none'" onmousemove="s=document.getElementById('popup<?php echo $g[0] ?>').style;s.top=document.body.scrollTop+event.clientY+2;s.left=document.body.scrollLeft+event.clientX-152;">[PLAY]</a>
<?PHP
 
For an example, visit: http://sebbyarcade.com/backup/Arcade.php

Re: PHP Textbox Onmouseover (Style Problem?)

Posted: Sun Jun 29, 2008 10:44 pm
by califdon
I see what you mean, in your screen shot, but your live site looks perfectly centered, using either FF or IE. What are you viewing it with? If it's an internal browser, it may not be rendering CSS correctly.

Re: PHP Textbox Onmouseover (Style Problem?)

Posted: Sun Jun 29, 2008 11:14 pm
by sebthib55
I had just just fixed it before you posted this. :D

I was talking to a friend on another site and he gave me tips. It is due to my OL....
I replaced them with <BR><BR> :)