# Javascript no margin

**URL:** <https://forum.kirupa.com/t/javascript-no-margin/153780>\
**Category:** flash\
**Created:** [July 4, 2005, 5:10pm UTC](https://forum.kirupa.com/t/javascript-no-margin/153780 "2005-07-04T17:10:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macro\_design](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Macro\_design](https://forum.kirupa.com/u/Macro_design)\
**Post date:** [July 4, 2005, 5:10pm UTC](https://forum.kirupa.com/t/javascript-no-margin/153780/1 "2005-07-04T17:10:38Z")

</div>

Hi,

I’m trying to create all sorts of different flash stuff, and I’m loading these images, but vertically there isn’t enough space for them, so I was planning on creating a popup window with the image, whenever pressed. So, I just used the great code for launching a popup window, here from Kirupa - [http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

Now, everything works just fine, the popup window appears, with the right image, and everything, the only problem is, that I’m going code it, so the popup window can’t be scaled, and there is a margin on the image. So there’s some white space, and some of the image is cut off.

Can anyone help me adding some code to the launching pop-up window tutorial, so that there won’t be any margins?

btw, what a nice weather 🙂 ( here in Denmark at least )
