Textbox Onmouseover (Style Problem?)

Discussion in 'JavaScript' started by sebthib55, Jun 29, 2008.

  1. #1
    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.

    [​IMG]

    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
    
    Code (markup):
     
    sebthib55, Jun 29, 2008 IP