Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/08/2010, 11:07
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: Practicando posicionamiento

podrías empezar por crear un código valido, repasa las reglas css y html

tu codigo deberia ser
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" xml:lang="en" lang="en">
  3. <title> Prueba posicionamiento con cajas</title>
  4.  
  5. <style type = "text/css">
  6.  
  7. .cajapadre{width: 300px; height: 300px; border: 2px solid black;}
  8. .cajapadre2{width: 200px; height: 200px; border: 2px solid black; position: absolute; top:100px;}
  9. .caja1{width:50px; height: 50px; border: 2px solid pink; margin: 5px; float: left;}
  10. .caja2{width:50px; height: 50px; border: 2px solid pink; margin: 5px; float: left;}
  11. .caja3{width:50px; height: 50px; border: 2px solid pink; margin: 5px;  float: left;}
  12.  
  13. </head>
  14.  
  15.  
  16. <div class="cajapadre">
  17.     <div class="caja1">Caja 1</div>
  18.     <div class="cajapadre2">
  19.             <div class="caja2">Caja 2</div>
  20.             <div class="caja3">Caja 3</div>
  21.     </div>
  22. </div>
  23.  
  24. </body>
  25. </html>

nota: tu problema es por
.cajapadre2{width: 200px; height: 200px; border: 2px solid black; position: relative; top:100px;}

debe ser absolute