Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/09/2009, 10:58
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 14 años, 11 meses
Puntos: 45
Respuesta: div con scroll horizontal

Hola juandedios

Mira si esto te lo soluciona (ajusta las medidas a tus necesidades)

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Scroll horizontal en div</title>
<style type="text/css">
.imagen {
	float: left;
	padding: 2px;
}
#visor {
	padding: 5px;
	height: 110px;
	width: 500px;
	overflow: hidden;
	overflow-x: auto;
	border: 1px solid #000; /* solo para test */
}
#portaimagen {
	width: 1100px;
	overflow: hidden;
}
</style>
</head>

<body>
<div id="visor">
  <div id="portaimagen">
    <div class="imagen">
       <img src="imagen1.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen2.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen3.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen4.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen5.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen6.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen7.jpg" width="80" height="60" alt="Google" />
    </div>
    <div class="imagen">
       <img src="imagen8.jpg" width="80" height="60" alt="Google" />
    </div>
  </div>
</div>

</body>

</html> 
Bye