I have been working on implementing a zoom feature for images, along with displaying a set of thumbnail images at the bottom of the zoomed image. While the zoom functionality is working correctly, I am facing an issue with the overflow of the tiny images. I want the images within the div (other_media) to avoid vertical overflow, but allow horizontal overflow so that users can scroll only left and right. Below is the HTML and CSS code for the thumbnail images:
#listing{
float:left;
height:80px;
width:80px;
margin:2px;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
box-shadow: 0 1px 3px rgba(0,0,0, .3);
}
<div id="other_media">
while($ots = mysql_fetch_array($other)){ ?>
<div id="listing">
<img src="<?php echo $paths; ?>" id="<?php echo $ots['class']; ?>" />
</div>
<?php } ?>
</div>