Ver Mensaje Individual
  #315 (permalink)  
Antiguo 01/08/2008, 07:47
Avatar de derkenuke
derkenuke
Colaborador
 
Fecha de Ingreso: octubre-2003
Ubicación: self.location.href
Mensajes: 2.665
Antigüedad: 20 años, 6 meses
Puntos: 45
Respuesta: Trivia: Conceptos CSS

Hola:

Yo lo probé así:
Código 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" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />
<title>Página nueva</title>
<style type="text/css">
#contenedor {width: 800px;
height: 400px;
margin: 0 auto;
background-color: blue;
}
#interior {
display: table;
width: 400px;
height: 200px;
background-color: red;
margin: 30px auto;
}
</style>
</head>

<body>

<div id="contenedor">
<div id="interior"></div>
</div>


</body>
</html> 
Se me ve igual en IE6 y en FF3. Aunque también me funciona si coloco display: table en #contenedor. Con overflow:auto a #contenedor también me ha funcionado


Saludos.
__________________
- Haz preguntas inteligentes, y obtendrás más y mejores respuestas.
- Antes de postearlo Inténtalo y Búscalo.
- Escribe correctamente tus mensajes.