PDA

View Full Version : NSFW: negative margins for iframe showing different in FF and IE



DionDev
Jan 20th, 2009, 04:20 AM
i am trying to display a form from a website inside an iframe

the problem is, this form displays perfectly in IE:

http://img258.imageshack.us/img258/6223/formiegg5.jpg (http://imageshack.us)
http://img258.imageshack.us/img258/formiegg5.jpg/1/w396.png (http://g.imageshack.us/img258/formiegg5.jpg/1/)

but it displays wrong in FF:

http://img108.imageshack.us/img108/8126/formffds6.jpg (http://imageshack.us)
http://img108.imageshack.us/img108/formffds6.jpg/1/w402.png (http://g.imageshack.us/img108/formffds6.jpg/1/)

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;
}


heres the HTML:

FOLLOWING SITE IS NOT SAFE FOR WORK!



<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>


any idea why this is happening?