Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/08/2009, 08:52
JonYeste
 
Fecha de Ingreso: enero-2009
Mensajes: 81
Antigüedad: 15 años, 3 meses
Puntos: 1
Exclamación Bordes problemas

Código HTML:
<body>

<div style="border: 1px solid #FF0000; width: 970px;">
<div style="margin: 20px; width: 100%; height: 100px; border: 20px solid #0000FF; "></div>
</div>

<div style="height: 200px"></div>

<table style="border: 1px solid #FF0000; width: 970px;" cellspacing="20">
<tr>
<td style="border: 20px solid #0000FF; width: 100%; height: 100px;">
</td>
</tr>
</table>

</body> 
Question: Por qué el div del borde azul sobresale del otro div? Y por qué no ocurre eso con las tablas?

Imágen de orientación:
h t t p://img257.imageshack.us/img257/9213/bordes.png

Gracias de antemano