Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/09/2012, 21:54
designermaster
 
Fecha de Ingreso: septiembre-2008
Ubicación: España
Mensajes: 230
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Hacer que un div no influya sobre el scroll de la web

<body>

<div class="texto_nosotros">
<div class="texto_nosotros_fondo"></div> <!-- Esta es la capa que tiene que quedar como fondo, y que no influya sobre el scroll del body -->
<div class="texto_nosotros_int"></div>
</div>


<style>

.texto_nosotros { width:920px; height:160px; display: block; float:left; clear: both; margin-top:25px; margin-bottom:48px; }

.texto_nosotros_fondo { width:1152px; height:160px; position: absolute; float:left; clear: both; margin-left:-115px; background:url(fondo.png) no-repeat 50% 0%; }

.texto_nosotros_int { width:920px; height:160px; position: absolute; z-index: 100; margin:0 auto;margin-top:3px; clear: both; background:url(texto.png) no-repeat 50% 57%; }

</style>

</body>