...

View Full Version : header/footer and iframe center



dom.killer
10-22-2007, 09:47 PM
It work good with Firefox 2, Opera 9, but not good with IE6 :confused:

Help me please, very thanks

iframe-layout.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
* {margin:0;padding:0;border:0;}
html, body, div, span, iframe, p,a, em, font, img, ol, ul, li, fieldset, form, label, legend, table, tbody, tfoot, thead, tr, th, td {
margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;
font-family: "Arial", Helvetica, Verdana, sans-serif;
vertical-align: baseline;
}

body {
font-size: 11px; line-height: 18px;
color: #333;
text-align:center;
height:100%;
max-height:100%;
/*overflow: hidden;*/
}

#header {
height:35px;
background-color:#E0EEF7;
text-align:left;
position:absolute;
top:0;left:0;display:block; width:100%;
}

#mainf {
position:absolute;left:0;right:0;top:35px;bottom:0;z-index:100;background:#faf;
}
#mainf .in {
height:100%; background:#fdf;overflow:hidden;
}
</style>
<!--[if IE]>
<style type="text/css">
/*html, body {overflow:hidden}*/
#mainf{ height:100%;top:0;bottom:0;border-top:35px}
</style>
<script>alert('IE');</script>
<![endif]-->
</head>

<body>

<div id="header">
Header
</div>

<div id="mainf">
<div class="in">
<iframe style="z-index:1" id="f1" src="iframe.html" marginheight="0" marginwidth="0" frameborder="0" height="100%" width="100%" scrolling="yes"></iframe>
</div>
</div>

</body>
</html>


iframe.html


<p>iframe<p>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<p>iframe<p>


http://img141.imageshack.us/img141/7199/iframelayoutpw3.jpg



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum