Stretching an iframe or an object with pixel precision
by
, 06-17-2010 at 09:35 PM (45704 Views)
Works also with an object. I got the idea from http://www.alistapart.com/articles/c...olutepositionsCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title></title> </head> <body style="background: sienna"> <div style="position: absolute; left:60px; top: 60px; right: 60px; bottom: 60px; border: 1px solid black"> <iframe frameborder="0" src="http://google.com" style="position: absolute; width: 100%; height: 100%; "></iframe> </div> <!--[if lt IE 7]> <div style="position: absolute; left:60px; top: 60px; "> <iframe frameborder="0" src="http://google.com" style="position: absolute; width: expression(document.documentElement.clientWidth-60-60+'px'); height: expression(document.documentElement.clientHeight-60-60+'px'); border: 1px solid black "></iframe> </div> <![endif]--> </body> </html>
===
Arie.