# Resize XML gallery depending user's screen resolution

**URL:** <https://forum.kirupa.com/t/resize-xml-gallery-depending-users-screen-resolution/307158>\
**Category:** flash\
**Created:** [March 29, 2010, 6:41pm UTC](https://forum.kirupa.com/t/resize-xml-gallery-depending-users-screen-resolution/307158 "2010-03-29T18:41:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Post date:** [March 29, 2010, 6:41pm UTC](https://forum.kirupa.com/t/resize-xml-gallery-depending-users-screen-resolution/307158/1 "2010-03-29T18:41:49Z")

</div>

Anybody has an idea how to accomplish something similar with the gallery in this [[COLOR=“Red”] **website?** [/COLOR]](http://www.nike.com/jumpman23/becomemars/index.html)

I have an XML gallery in my project that has pre-specified numbers of columns.

- How it could be possible to detect user’s _screen resolution_ (use of [COLOR=“DarkGreen”]Event.RESIZE[/COLOR]?) and according to this to change the number of columns - and of course rows?

Forgot to mention that I load records from a database so I am not aware of the total number of images…

Any help or guidance is appreciated.
