Page 1 of 1

iframe problem in IE

Posted: Thu Mar 05, 2009 11:45 am
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 259 times

Re: iframe problem in IE

Posted: Thu Mar 05, 2009 12:59 pm
by kaszu

Code: Select all

html, body { width: 100%; height: 100%; overflow: hidden; }

Re: iframe problem in IE

Posted: Thu Mar 05, 2009 7:29 pm
by dimebag
thanks mate so much i just add {margin:0;} to your code and it worked like a charm
thanks so much