[SOLVED]PHP Textbox Onmouseover (Style Problem?)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sebthib55
Forum Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:44 pm

[SOLVED]PHP Textbox Onmouseover (Style Problem?)

Post 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
Last edited by sebthib55 on Mon Jun 30, 2008 10:53 pm, edited 1 time in total.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: PHP Textbox Onmouseover (Style Problem?)

Post 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.
sebthib55
Forum Newbie
Posts: 4
Joined: Fri Jun 20, 2008 1:44 pm

Re: PHP Textbox Onmouseover (Style Problem?)

Post 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> :)
Post Reply