Ver Mensaje Individual
  #23 (permalink)  
Antiguo 08/07/2009, 13:35
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 6 meses
Puntos: 40
Respuesta: posicionamiento absoluto de capas?

No funciona en donde?. yo veo que funciona perfectamente como lo tienes, pueden llevar también el mismo z-index donde tu lo tienes diferente.

Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Untitled Document</title>
  5. <style type="text/css">
  6. .contenedor{position:relative;background:yellow;border:1px solid blue;height:100px; margin:0 0 15px 0;}
  7. .layer/*Como tu le llamas*/{position:absolute; top:50px;left:50px;height:100px;width:100px;}
  8. </head>
  9.  
  10. <div class="contenedor" style="z-index:2;">contenedor1
  11. <div class="layer" style="z-index:2;background:blue;">
  12. z-index:2
  13. <br><br><br>layers de igual dimension
  14. </div>
  15. </div>
  16.  
  17.  
  18. <div class="contenedor" style="z-index:1;">contenedor1
  19. <div class="layer" style="z-index:1;background:red;">
  20. z-index:1
  21. <br><br><br><br>aaaaaaa
  22. </div>
  23. </div>
  24. </body>
  25. </html>

Sería bueno que leas bien los manuales, ya que si los hubieras leído como dices no tendrías este problema.

PD: Testeado en IE6,7, Chrome,FF, Safari y opera.
__________________
WFC
codigo82