Help with centrering my flash-movie in the browser

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:

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.


<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:


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

hope this helps

Or you could just have:


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

Isn’t that just for centering the swf horizontally?

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

<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.