title: Take combined width of multiple images and apply to their containing div
body: <p>The code I need help with is at www.photographeller.com/portfolio</p>
  
  <p>I need to take the combined width of multiple images and use that solution as the width of their containing div. Right now, I use jquery to apply a class when an image is clicked that adds a width of 4800px to div.innerOpen. It's way too wide for a lot of the sections but it at least makes it so all the images are inline as they're supposed to be. The effect would be a lot smoother if the width was just the right amount so that none of the images got pushed down, or just went to 100% width when there's not enough images to be wider than the viewer's screen.</p>
  
  <p>There is one question on here that came close to what I need.</p>
  
  <p><a href="https://stackoverflow.com/questions/3194962/find-child-image-width-and-apply-it-to-containing-parent-div-jquery">find child image width and apply it to containing parent div jquery</a></p>
  
  <p>But, that solution only takes the width of the first image, and not every image.</p>
  
  <p>This seems like something that wouldn't be too hard if you have a firm understanding of jquery or javascript, which unfortunately I'm a novice in those areas.</p>
  
  <p>Any help would be greatly appreciated. Thanks!</p>