# Making pop-up window that resizes to the picture it contains. How?

**URL:** <https://forum.kirupa.com/t/making-pop-up-window-that-resizes-to-the-picture-it-contains-how/122111>\
**Category:** Uncategorized\
**Created:** [September 10, 2004, 10:35am UTC](https://forum.kirupa.com/t/making-pop-up-window-that-resizes-to-the-picture-it-contains-how/122111 "2004-09-10T10:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superduper](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@superduper](https://forum.kirupa.com/u/superduper)\
**Post date:** [September 10, 2004, 10:35am UTC](https://forum.kirupa.com/t/making-pop-up-window-that-resizes-to-the-picture-it-contains-how/122111/1 "2004-09-10T10:35:36Z")

</div>

How on earth do I make a pop-up window that resizes to the picture it contains? In short terms:

When clicking the thumb a pop-up window appear containing the picture. My problem is this: If the image don’t exactly fit my pop-up, I end up with an ugly-looking white area around it.

Can u help me?  
:p:
