Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/12/2008, 11:11
trhipahx
 
Fecha de Ingreso: septiembre-2006
Mensajes: 233
Antigüedad: 17 años, 6 meses
Puntos: 0
Elemento mismo nivel y anidado

Hola

Siguiendo el curso:
http://www.ignside.net/man/css/posicionamiento.php

Me he encontrado con lo siguiente:

tres elementos del mismo nivel, posicionados relativamente

<SPAN STYLE="position:relative; background-color:#90EE90">
Green relative element.
</SPAN>
<SPAN STYLE="position:relative; background-color:#ADD8E6">
Blue relative element.</SPAN>
<SPAN STYLE="position:relative; background-color:#FFB6C1">
Red relative element.</SPAN>

¿quieres verlo?

tres elementos anidados, posicionados relativamente

<SPAN STYLE="position:relative; background-color:#90EE90">
Green relative element.
<SPAN STYLE="position:relative; background-color:#ADD8E6">
Blue relative child of green.
<SPAN STYLE="position:relative; background-color:#FFB6C1">
Red relative child of blue.
</SPAN>
</SPAN>
</SPAN>
¿quieres verlo?



En el primer caso aparecen los tres elementos separados entre sí por un pequeño espacio en blanco y en el segundo sus colores de fondo aparecen completamente juntos
¿a qué se debe?

Gracias