negative margins for iframe showing different in FF and IE

Discussion in 'CSS' started by DionDev, Jan 19, 2009.

  1. #1
    i am trying to display a form from a website inside an iframe

    the problem is, this form displays perfectly in IE:

    [​IMG]
    [​IMG]

    but it displays wrong in FF:

    [​IMG]
    [​IMG]

    heres the CSS:

    
    #container{
      width: 380px;
      height: 288px;
      overflow: hidden;
      border: 3px solid #4398d4;
    }
    #container iframe {
      width: 800px;
      height: 600px;
      margin: -305px 0px 0px -40px;
    }
    
    Code (markup):
    heres the HTML:

    
    <div id="container">
    <iframe src="http://wow.eroticagateway.com/signup/signup.php?step=signup&qualify=1&site=226&nats=NzUxNjg6MzoyMjY" scrolling="no" frameborder="0"></iframe>
    </div>
    
    Code (markup):
    any idea why this is happening?
     
    DionDev, Jan 19, 2009 IP