# Center flash in firefox nightmare

**URL:** https://forum.kirupa.com/t/center-flash-in-firefox-nightmare/208367
**Category:** Uncategorized
**Created:** [November 28, 2006, 12:01am UTC](https://forum.kirupa.com/t/center-flash-in-firefox-nightmare/208367 "2006-11-28T00:01:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paul\_ferrie](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@paul\_ferrie](https://forum.kirupa.com/u/paul_ferrie)
#### Post date: [November 28, 2006, 12:01am UTC](https://forum.kirupa.com/t/center-flash-in-firefox-nightmare/208367/1 "2006-11-28T00:01:05Z")

</div>

Hi guys,  
What a friggin time i am having with this :help:  
I have just discovered that the past few site i have built dont center properly in flash.  
I thought that i had sorted this today using div with style sheet

```auto

<style type="text/css">
<!--
BODY {
 margin: 0px;
 padding: 0px;
 background-color: #000000;
}
#flashcontent {
position: absolute;
left: 50%; 
top: 50%;
margin-top: -265px; /*minus half the height of the movie, so if your movie was 600 pixels high this would be -300px etc... */
margin-left: -382px; /* minus half the width of the movie */
}
#TopLayer {
position: absolute;
left: 50%; 
/*top: 30%;
margin-top: -265px; minus half the height of the movie, so if your movie was 600 pixels high this would be -300px etc... */
margin-left: -382px; /* minus half the width of the movie */
background-image: url(barTop.jpg);
width: 765px;
height: 30%;
}
#BottomLayer {
position: absolute;
left: 50%; top: -65px;
margin-top: 500px; /* minus half the height of the movie, so if your movie was 600 pixels high this would be -300px etc... */
margin-left: -382px; /* minus half the width of the movie */
background-image: url(barBottom.jpg);
width: 765px;
height: 41%;
}
-->
</style>

```

I have discovered that if the user resizes the page then it all goes wonky :S  
the top half of the movie dissappears :S

[Example](http://www.iceboxcustoms.com/main.html)

Can some one please tell me how to fix this. html is not one of my strengths.  
Thanks  
Paul
