Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/06/2009, 13:32
Avatar de marcosr
marcosr
 
Fecha de Ingreso: agosto-2005
Ubicación: Montevideo, Uruguay
Mensajes: 451
Antigüedad: 18 años, 7 meses
Puntos: 5
Respuesta: Como hacer que un iframe ocupe el 100% de un div?

Por supuesto.


Este es el iframe:
Código:
<div id="vista">
    	<div class="cabezal">Contenido</div>
        <div class="contenido" id="pp">
<iframe frameborder="0" height="100%" width="100%" src="<?php echo $archivo; ?>" style="float:left; height:100%; width:100%;"></iframe>
</div>
    </div>
El CSS es este:
Código:
#vista {
	float:left;
	width:79%;
	height:100%;
	margin:0 1% 0 0;
}
.contenido {
	width:100%;
	min-height:400px;
	font-family:Tahoma, Geneva, sans-serif;
	font-size:0.7em;
	padding:7px 0 3px 5px;
	border:1px solid #002F5F;
	border-top:none;
	color:#333;
	background:white;
}
#contenido {
	float:left;
	width:100%;
	height:100%;
}
#pp { height:100%; }
__________________
Yo hago preguntas inteligentes para obtener respuestas rapidas, y vos?
(únete a la campaña !)