Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2012, 05:01
xinxan22
 
Fecha de Ingreso: septiembre-2005
Mensajes: 522
Antigüedad: 18 años, 7 meses
Puntos: 0
Respuesta: posición de capas

Encontré como hacerlo en la siguiente página:


http://www.webestilo.com/foros/mensa...o=16&msg=38905

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">

<html>
<head>
 <title>Untitled</title>
 <style type="text/css">
  #contenedor {
   width: 90px;
   position: relative;
   margin: 0px auto; 
  }
  #capa1 {
   position: absolute;
   left: 0;
   top: 0;
   width: 90px;
   color: red;
   z-index: 2;
  }
  #capa2 {
   position: absolute;
   left: 0;
   top: 0;
   width: 90px;
   color: black;
   z-index: 1;
  }
 </style>
</head>

<body>

<div id="contenedor">
 <div id="capa1">
  sdfhsdfhsdfh<br />
  ertwtwetwre<br />
  wetwetwet
 </div>
 <div id="capa2">
  srgreghwerhr<br />
  xfgfghxfgh<br />
  xfghxfghxfg
 </div>
</div>

</body>
</html> 


Por cierto recomiendand lo siguiente: "Ah, y no olvides usar XHTML Strict como DOCTYPE."

Yo no lo estoy usando, que significa eso?

Un saludo