Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/10/2012, 03:16
Avatar de patilanz
patilanz
 
Fecha de Ingreso: enero-2012
Mensajes: 880
Antigüedad: 12 años, 4 meses
Puntos: 29
Un elemento bajo otro sin position:absolute

Hola ncesito poner una div bajo otra pero que no tenga la propiedad position:absolute
Tengo el siguiente codigo:
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>Documento sin título</title>
  5. <style type="text/css">
  6. .logo{
  7.     width:600px;
  8.     height:180px;
  9.     z-index:-1;
  10.     float:center;
  11.     border-radius:10px;
  12.     background-color:white;
  13.     border-width:thin;
  14.     border:0px;
  15.     border-color:#ccc;
  16.     border-style:solid;
  17.     border-right:none;
  18.     border-bottom:none;
  19.     color:#00CCFF;
  20.     box-shadow:1px 1px 20px 1px #ccc;
  21.     padding:1px;
  22.     font-family:Georgia, "Times New Roman", Times, serif;
  23.     font-style:italic;
  24.     font-size:60px;
  25. }
  26. div.logo:hover{
  27.     background-color:#CCCCCC;  
  28. }
  29. #apDiv1 {
  30.     width:590px;
  31.     height:180px;
  32.     z-index:1;
  33.     float:center;
  34. }
  35. </head>
  36.  
  37. <center>
  38. <div id="apDiv1" onmouseover="document.getElementById('logo').style='background-color=#CCCCCC';"><img src="images/pass..GIF" width="580" height="170" style="z-index:1; float:center;" /></div>
  39. <div class="logo" id="logo"><p style="font-size:5px"><p><div style="border:0px; border-style:solid; width:305px; border-radius:10px; height:70px; box-shadow:1px 1px 20px 1px #ccc; text-shadow: black 0.1em 0.1em 0.2em;">Forgoter</div></div>
  40. </center>
  41. </body>
  42. </html>
Pero no lo consigo hacer...
Necesito sin esta propiedad porque se be diferente en cada navegador y en cada ordenador...

Saludos