Forum Moderators: not2easy
I want to position an iframe element 80 pixels from the top of the window, and 10 from the other sides, and the iframe fills this entire area.
The code that works in firefox is :
iframe {
position: absolute;
top: 80px;
left: 10px;
right: 10px;
bottom: 10px;
}
But I cannot work out how to do this in IE at all, I've tried a few different ways but nothing seems to work. If you know of a solution please share!
edit//
here is the full html source of my test page.
<html>
<head>
<style type="text/css">
body { margin: 0px; padding: 0px;}
iframe {
position: absolute;
top: 80px;
left: 10px;
right: 10px;
bottom: 10px;
}
</style>
</head>
<body>
<!-- just test with WebmasterWorld -->
<iframe src="http://www.webmasterworld.com/forum83/8856.htm"></iframe>
</body>
</html>