Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/01/2011, 07:54
Tarzan
 
Fecha de Ingreso: noviembre-2005
Ubicación: Alicante (España)
Mensajes: 242
Antigüedad: 18 años, 5 meses
Puntos: 1
Respuesta: Marco rectangular con css

Vale, creo que lo he conseguido pero,

¿Alguien puede decirme por qué la capa no respeta el alto de 15 pixeles?

<div style = "display: table; width: 220px; height: 150px; background-color:red;">
<div style = "float: left; height: 150px; width: 15px; background- color:grey;"></div>
<div style = "float: left; width: 190px; height: 150px; background-color:blue;">
<div style = "height: 15px; width: 190px; background-color:grey;"></div>
<div style = "height: 120px; width: 190px; background-color:yellow;"></div>
<div style = "height: 15px; width: 190px; background-color:grey;"></div>
</div>
<div style = "float: right; height: 150px; width: 15px; background-color:grey;"></div>
</div>


Si pegais el código en un html, veréis que no encaja bien porque pilla el alto de las capas en gris con 18 pixeles cuando le estoy especificando 15.

¿Alguien sabe por qué?