Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/09/2010, 19:47
Avatar de matius
matius
 
Fecha de Ingreso: julio-2005
Ubicación: Mexico, D.F.
Mensajes: 554
Antigüedad: 18 años, 9 meses
Puntos: 2
Respuesta: Problema con div display: block en IE7

O puedes probar de la forma clásica y cruteril:


Código HTML:
<html>
<head>
<title></title>
<style type="text/css">

#header{
color: #FFFFFF;
padding: 10px;
display: block;
overflow:hidden;
background: #000;
}
#header h1 {
float: left;
}
#header p {
float: right;
}

</style>

</head>

<body><div id='header'><h1>Título</h1> <p>Linea de texto | Linea de texto 2 <br />Linea de texto 3</p><div style="clear: both;"></div></div>

</body>
</html> 
Esto funciona hasta IE5