iframe problem in IE

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
dimebag
Forum Newbie
Posts: 22
Joined: Fri Feb 13, 2009 4:13 pm

iframe problem in IE

Post by dimebag »

hi
im using iframe on some of my pages
the frame perfectly matches in firefox but in IE the right boarder does not match and i have two scroll bars rather than one, one for Iframe and one for IE itself
ive attached the pic from IE
and this is html code im using
how should i fix it?
thanks in advance

Code: Select all

<html><head><title><?php echo $CONFIG['siteName']; ?></title><style type="text/css">html,body{margin:0;}</style></head><body><iframe frameborder="0" width="100%" height="100%" src="<?php echo $CONFIG['baseURL'].$key.'/?cloaked=true'; ?>">Your browser does not support frames.</iframe></body></html>
untitled.JPG
untitled.JPG (10.32 KiB) Viewed 257 times
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: iframe problem in IE

Post by kaszu »

Code: Select all

html, body { width: 100%; height: 100%; overflow: hidden; }
dimebag
Forum Newbie
Posts: 22
Joined: Fri Feb 13, 2009 4:13 pm

Re: iframe problem in IE

Post by dimebag »

thanks mate so much i just add {margin:0;} to your code and it worked like a charm
thanks so much
Post Reply