Ver Mensaje Individual
  #9 (permalink)  
Antiguo 09/01/2012, 13:41
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Problema con Background FIXED

proba poniendo el degrade como fondo del html

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9. html, body, div{
  10. padding: 0;
  11. border: none;
  12. margin:0;
  13. }
  14. html{
  15. background: url(degradado.png) repeat fixed top center;
  16. }
  17. body{
  18. height: 100%;
  19. }
  20. div#arena{
  21. width: 100%;
  22. z-index: 900;
  23. height:60px;
  24. background: url(arena.png) fixed center center;
  25. position: fixed;
  26. bottom: 0;
  27. left: 0;
  28. }
  29. div#barco {
  30. position: fixed;
  31. bottom: 0;
  32. right: 0;
  33. z-index: 950;
  34. width: 191px;
  35. height: 335px;
  36. background: url(barco.png) no-repeat;
  37. }
  38. div#contenido{
  39. position: absolute;
  40. width: 100%;
  41. height: auto;
  42. baclground-color: transparent;
  43. z-index: 999;
  44. }
  45. /*]]>*/
  46. </head>
  47. <div id="barco"></div>
  48. <div id="arena"></div>
  49. <div id="contenido">
  50. <p>contenido</p>
  51. <p>contenido</p>
  52. </div>                         
  53. </body>
  54. </html>

faltaría ajustar el alto de las capas para barco y arena

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.