# Dynamically adjustable gallery

**URL:** <https://forum.kirupa.com/t/dynamically-adjustable-gallery/323202>\
**Category:** Uncategorized\
**Created:** [June 21, 2011, 4:42am UTC](https://forum.kirupa.com/t/dynamically-adjustable-gallery/323202 "2011-06-21T04:42:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wazabii](https://avatars.discourse-cdn.com/v4/letter/w/13edae/32.png) [@Wazabii](https://forum.kirupa.com/u/Wazabii)\
**Post date:** [June 21, 2011, 4:42am UTC](https://forum.kirupa.com/t/dynamically-adjustable-gallery/323202/1 "2011-06-21T04:42:35Z")

</div>

HI, i’ve been currently working on a project which requires the functionality that’s similar to [www.adidas.com](http://www.adidas.com) for viewing images.

I’ve managed to create a single resizeable gallery box, but still not sure on how to calculate the distance between one box to another, and resize it dynamically when another box is enlarging. Also in my opinion, making this gallery static is not an option since there’ll be more than 20 boxes to be shown, and there’s possibility in the future that the number of boxes can be changed.

Thanks, Wazabii
