# Centering movie in browser?

**URL:** <https://forum.kirupa.com/t/centering-movie-in-browser/171111>\
**Category:** flash\
**Created:** [December 1, 2005, 10:16pm UTC](https://forum.kirupa.com/t/centering-movie-in-browser/171111 "2005-12-01T22:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veraxoxo](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@veraxoxo](https://forum.kirupa.com/u/veraxoxo)\
**Post date:** [December 1, 2005, 10:16pm UTC](https://forum.kirupa.com/t/centering-movie-in-browser/171111/1 "2005-12-01T22:16:51Z")

</div>

I know this has been asked hundreds of times, but I am still not having luck with centering my movie.  
The thing is my movie is perfectly placed when I open my website on my Mac (both in Safari and IE). BUT, on a Windows machine, the movie appears in the top left corner. I am posting my index.html file where I’m embedding the swf. Maybe there’s something I’m missing:

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang=“en” lang=“en”\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>  
\<title\>My Title\</title\>

\</head\>  
\<style type=“text/css”\>  
\<!–  
body {  
height: 100%;  
width: 100%;  
margin: 0;  
}  
–\>  
\</style\>  
\<body bgcolor="#3d2d1e"\>  
\<!–url’s used in the movie–\>  
\<!–text used in the movie–\>  
\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0](http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0)” width=“1000” height=“800” id=“bc” align=“middle”\>  
\<param name=“allowScriptAccess” value=“sameDomain” /\>  
\<param name=“movie” value=“b.swf” /\>  
\<param name=“menu” value=“false” /\>  
\<param name=“quality” value=“high” /\>  
\<param name=“scale” value=“noscale” /\>  
\<PARAM NAME=salign VALUE=“Center”\>  
\<param name=“bgcolor” value="#3d2d1e" /\>  
\<embed src=“b.swf” menu=“false” quality=“high” scale=“noscale” bgcolor="#3d2d1e" width=“100%” height=“100%” name=“b” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>  
\</object\>  
\</body\>  
\</html\>
