iframe in FireFox en IE

Status
Niet open voor verdere reacties.

De Mettes

Gebruiker
Lid geworden
29 mei 2007
Berichten
172
Hallow,

ik ben bezig aan een site met een template en daarin een editable region waar een iframe in staat.
De bedoeling is dat het iframe tussen de header en footer de rest van de pagina vult.
In FF doet hij het zoals ik wil maar in IE blijft het iframe op een vaste hoogte.

Kan iemand mij verder helpen de pagina staat hier en enkel de link '3D' werkt als voorbeeld

alvast bedankt
 
Zoekt en gij zult vinden.
even in de googeldoos gekeken:
iframe min-height
eerste link was al in de roos.

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">
<!--
html, body, iframe {
height: 100%;
}
#iframe {
		height: auto !important;
		height: 100%;
		min-height: 100%; }
body {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	background: #666666;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
}
.oneColFixCtrHdr #container {
	width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
	background: #FFFFFF;
	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
	height:auto;
}
.oneColFixCtrHdr #header {
	background: #DDDDDD;
	padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
	position: relative;
	top: 0px;
}
.oneColFixCtrHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColFixCtrHdr #mainContent {
	padding: 0 20px;
	position: absolute;
	min-height: 400px;
	width: 730px;
	top: 120px;
	background-color: #000000;
	bottom: 50px;
border:2px solid #ff0000;

height:auto !important; /* voor moderne browsers */
height:400px; /* voor IE */
}
.oneColFixCtrHdr #footer {
	padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#DDDDDD;
	position: absolute;
	bottom: 5px;
}
.oneColFixCtrHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
-->
</style>
</head>

<body class="oneColFixCtrHdr">

<div id="container">
  <div id="header">
    <h1><img src="../images/header/headerLeft.gif" width="232" height="81" /><a href="../theProductionCompany/3dVisualisatie.html"><img src="../images/header/headerLogo.jpg" width="237" height="81"  /></a><img src="../images/header/headerRight.gif" width="270" height="81" /></h1>

  <!-- end #header --></div>
  
  
  <!-- TemplateBeginEditable name="mainContent" -->
  <div id="mainContent">
  <a href="http://users.telenet.be/tim_mettes/theProductionCompany/3dVisualisatie.html" target="iframe">3D</a><!-- end #mainContent -->
  <iframe name="iframe" id="ïframe" width="730" > </iframe>
  </div>
  <!-- TemplateEndEditable -->
  
  
  <div id="footer" >

    <p><img src="../images/borders/pageBottom.gif" width="750" height="23" /></p>
  <!-- end #footer --></div>
<!-- end #container --></div>


</body>
</html>

:cool:
 
Hmm vreemd had al gezocht vooral op dit forum maar niets wou mij lukken (zelfs scripts geprobeert)

Allesinds heeeeel hartelijk bedankt en mijn excuses aangezien gij het zo rap had.

Bedankt!
 
You're welcome ..... :thumb:
Zoeken is ook een kunst.............
als je weet wat je zoekt is het makkelijker.
Soms duurt het wat langer.......

:cool:
 
Ik heb nog een vraag bij het script.

HTML:
eight:.oneColFixCtrHdr #mainContent {
	padding: 0 20px;
	position: absolute;
	min-height: 400px;
	width: 730px;
	top: 120px;
	background-color: #000000;
	bottom: 50px;
border:2px solid #ff0000;

height:auto !important; /* voor moderne browsers */
height:400px; /* voor IE */ voor IE */

Komt de div .oneColFixCtrHdr #mainContent dan in IE altijd op 400px?
Ik heb zo de indruk op mijn 15,4" laptopscherm maar als iemand ziet met bv een 17" scherm is de mainContent dan ook niet maximaal 400px of redeneer ik fout?
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan