Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2009, 20:36
quebien
 
Fecha de Ingreso: febrero-2007
Mensajes: 309
Antigüedad: 17 años, 2 meses
Puntos: 16
Respuesta: DIV Flotante posicion absoluta pero relativa a otro DIV

Sigo haciendo pruebas y me di cuenta que el problema es el DOCTYPE.

Con este DOCTYPE anda bien:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Pero con este no anda:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

El código HTML es este:

Código:
<html>
<body>

<div style="width:400px;height:200px;background:silver">
	<div style="width:200px;height:100px;background:orange;padding:20px;position:relative;top:150;left:250">hola
	</div>
</div>

</body>
</html>

No tengo ni idea porque con un DOCTYPE anda y con el otro no...
__________________
Responder encuestas