My website, vladimirvojtela.com, features a gallery with a horizontal scrollbar that leaves whitespace at the end due to the width parameter in the code. Can anyone suggest a script that can automatically adjust the DIV width after all images have been rendered? Thank you for your assistance!
HTML
<div class='photo_wrap' style='width:30685px'>
<img src="admin/uploads/galleries/09fa472aaefe3ab2563b97b0d5c4a325/DSC_5627_ret_small.jpg" height="700px" style="width:auto; margin: 5px" >
<img src="admin/uploads/galleries/09fa472aaefe3ab2563b97b0d5c4a325/DSC_5635_ret_small.jpg" height="700px" style="width:auto; margin: 5px" >
......
......
</div>
CSS
.photo_wrap {
z-index: 1;
position: absolute;
top: 4em;
}
.photo_wrap img {
display: inline;
width: 500px;
margin-right: 0;
}