Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/08/2007, 13:20
hispamaster
 
Fecha de Ingreso: octubre-2005
Mensajes: 50
Antigüedad: 18 años, 6 meses
Puntos: 0
Re: adaptar div al contenidode iframe

Código HTML:
<style type="text/css">
<!--
#Layer4 {
	position:absolute;
	overflow: auto; //el div se ajustara a su contenido
	z-index:0;
	left: 20%;
	top: 120px;
}
-->
</style>

<div id="Layer4" align="right">
      <iframe src="http://www.google.com" name="contenido"
      width="500" height="600" align="left" scrolling="no" frameborder="0" id="contenido"> Texto alternativo para browsers que no aceptan iframes.</iframe>
</div> 
Te recomiendo que uses medidas absolutas en el tamaño del iframe !!