Help with a iframe

Discussion in 'HTML & Website Design' started by mimptres, Oct 8, 2009.

  1. #1
    Hello everybody, i hope some one can helpme, i need iframe and im using the next code:

    <style type="text/css">
    
    body {
      margin: 0px;
    } 
    .overflow-x: hidden;
    
    </style>
    <p>
      <input type="button" onClick="test.location.href='MYURL';document.getElementById('test').frameBorder=1" value="Servidor 1" >
      <input type="button" onClick="test.location.href='MYURL';document.getElementById('test').frameBorder=1" value="Servidor 2" >
      <input type="button" onClick="test.location.href='MYURL';document.getElementById('test').frameBorder=1" value="Servidor 3" >
      <input type="button" onClick="test.location.href='MYURL';document.getElementById('test').frameBorder=1" value="Servidor 4" >
    
    </p>
    <iframe src="MYURL" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" name="test" id="test" width=660 height=1100></iframe>
    PHP:
    The problem is, the start page show wihout the margin, but when the user click in some button show the iframe with a margin in firefox, in IE no, but how i can make for dont show any margin in ff and ie. i hope somebody can helpme
     
    mimptres, Oct 8, 2009 IP