# Centered Popup Window Problem

**URL:** <https://forum.kirupa.com/t/centered-popup-window-problem/155845>\
**Category:** flash\
**Created:** [July 20, 2005, 7:39pm UTC](https://forum.kirupa.com/t/centered-popup-window-problem/155845 "2005-07-20T19:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarBase9](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@StarBase9](https://forum.kirupa.com/u/StarBase9)\
**Post date:** [July 20, 2005, 7:39pm UTC](https://forum.kirupa.com/t/centered-popup-window-problem/155845/1 "2005-07-20T19:39:53Z")

</div>

[http://www.kirupa.com/developer/mx/full\_site.htm](http://www.kirupa.com/developer/mx/full_site.htm)

Click on “View Sample Site” See how the flash .swf is perfectly tucked to the edges of the html. The problem is, I dont know how this is done?

I’m using this code at the moment under the \<head\> in the html I publish from flash mx 2004:

\<style type=“text/css”\>  
\<!–  
body {  
height: 100%;  
width: 100%;  
margin: 0;  
}  
–\>  
\</style\>

I tried that plus, using the “Centered Popup Window Tutorial”. It works in Internet Explorer, but it doesnt in Mozilla. And I noticed, Kirupa’s one works in IE and Mozilla. What am I doing wrong?

I basically want my site no margins, like the site below. Click on the UK flag and see how that site has no margins as well:

[http://www.sukiland.com/](http://www.sukiland.com/)

Please help me guys :puzzled:
