# Help with centrering my flash-movie in the browser

**URL:** <https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412>\
**Category:** Uncategorized\
**Created:** [July 27, 2004, 9:16am UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412 "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/117412/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:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 27, 2004, 9:36am UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412/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:** ![dangerskew](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dangerskew](https://forum.kirupa.com/u/dangerskew)\
**Post date:** [July 27, 2004, 1:59pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412/3 "2004-07-27T13:59:39Z")

</div>

Or you could just have:

```auto

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

```

---

<div class="post-metadata">

**Author:** ![sintax](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sintax](https://forum.kirupa.com/u/sintax)\
**Post date:** [July 27, 2004, 2:10pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412/4 "2004-07-27T14:10:56Z")

</div>

Isn’t that just for centering the swf horizontally?

---

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [July 27, 2004, 2:45pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412/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:** ![Luckies](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/luckies/32/550_2.png) [@Luckies](https://forum.kirupa.com/u/Luckies)\
**Post date:** [July 27, 2004, 7:01pm UTC](https://forum.kirupa.com/t/help-with-centrering-my-flash-movie-in-the-browser/117412/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.
