Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/03/2007, 17:25
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Re: Imagen que se adapta al Div

Puede ser que no hayas hecho bien algo de lo que te ha dicho javierB. Este código funciona perfectamente:

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Foto elastica</title>
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
  <style>
#caja{
width: 70%;
height: 90%;
}
#caja img {width: 100%;
height: 100%;
}
  </style>
</head>
<body>
<div id="caja"><img src="tufoto.jpg"></div>
</body>
</html>
Míralo cómo funciona aquí:

http://www.menoslobos.com/mikel/foro..._elastica.html

Prueba a reducir la ventana del navegador como quieras.

Mikel.