# How do I center my Flash movie in the web browser?

**URL:** https://forum.kirupa.com/t/how-do-i-center-my-flash-movie-in-the-web-browser/199127
**Category:** flash
**Created:** [August 31, 2006, 10:13am UTC](https://forum.kirupa.com/t/how-do-i-center-my-flash-movie-in-the-web-browser/199127 "2006-08-31T10:13:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Login418](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/login418/32/2712_2.png) [@Login418](https://forum.kirupa.com/u/Login418)
#### Post date: [August 31, 2006, 10:13am UTC](https://forum.kirupa.com/t/how-do-i-center-my-flash-movie-in-the-web-browser/199127/1 "2006-08-31T10:13:29Z")

</div>

How do I modify the .html file that Flash produces (when publishing) so that my flash movie is always centered? Now it is always Justify Left.

Here is the .html text:

\<!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=“refresh” content=“3;url=demo2\_alternate.html” /\>  
\<title\>demo2\</title\>  
\</head\>  
\<body\>  
\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0)” width=“80” height=“80”\>  
\<param name=“movie” value=“flash\_detection.swf?flashContentURL=demo2\_content.html&altContentURL=demo2\_alternate.html&contentVersion=7&contentMajorRevision=0&contentMinorRevision=0&allowFlashAutoInstall=false” /\>  
\<param name=“quality” value=“low” /\>  
\<embed src=“flash\_detection.swf?flashContentURL=demo2\_content.html&altContentURL=demo2\_alternate.html&contentVersion=7&contentMajorRevision=0&contentMinorRevision=0&allowFlashAutoInstall=false” quality=“low” pluginspage=“[http://www.macromedia.com/shockwave/download/index.cgi?P1\_Prod\_Version=ShockwaveFlash](http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash)” type=“application/x-shockwave-flash” width=“80” height=“80” /\>  
\</object\>  
\</body\>  
\</html\>
