# Help with centrering my flash-movie in the browser

**URL:** https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945
**Category:** flash
**Created:** [July 27, 2004, 9:16am UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945 "2004-07-27T09:16:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Soma](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Soma](https://forum.kirupa.com/u/Soma)
#### Post date: [July 27, 2004, 9:16am UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/1 "2004-07-27T09:16:32Z")

</div>

well, the title may have said it already… when you enter my site the flash-movie is in the top left corner of the browser, how do I get it to be centered ?

Regards, Soma :gm:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 27, 2004, 9:36am UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/2 "2004-07-27T09:36:46Z")

</div>

create a table in html, with the width and height of 100%. then place the flash movie into this tablecell and set the alignment to middle en center.

```auto

<table width="100%" height="100%" border="0">
  <tr>
    <td width="100" align="center" valign="middle"></td>
  </tr>
</table>

```

change the page properties so there aren’t any margins:

```auto

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

```

hope this helps

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 27, 2004, 1:59pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/3 "2004-07-27T13:59:39Z")

</div>

Or you could just have:

```auto

<center>
<embed src="whatever" ></embed>
</center>

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 27, 2004, 2:10pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/4 "2004-07-27T14:10:56Z")

</div>

Isn’t that just for centering the swf horizontally?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 27, 2004, 2:45pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/5 "2004-07-27T14:45:59Z")

</div>

yeah your right sintax and its not xhtml compliant, if that really matters to ya.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 27, 2004, 7:01pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/58945/6 "2004-07-27T19:01:30Z")

</div>

\<body marginwidth=0 marginheight=0\>  
\<table width=100% height=100%\>  
\<tr\>  
\<td align=“center” valign=“middle”\>  
\<embed src=""\>  
\</td\>  
\</tr\>  
\</table\>

addendum: bollox, have to read threads first from now on.
