# Centering flash movie for html

**URL:** <https://forum.kirupa.com/t/centering-flash-movie-for-html/29274>\
**Category:** flash\
**Created:** [August 25, 2003, 5:26am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274 "2003-08-25T05:26:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rysolag](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rysolag](https://forum.kirupa.com/u/rysolag)\
**Post date:** [August 25, 2003, 5:26am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/1 "2003-08-25T05:26:30Z")

</div>

After I publish my flash movie i Get an html file…  
How can I center the Flash movie in the browser?  
The default is left.  
There are two alignment attributes that are initially empty strings.  
right makes it right align but center does not do anything.

thanks

---

<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:** [August 25, 2003, 5:39am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/2 "2003-08-25T05:39:50Z")

</div>

edit you html file in dreamweaver or frontpage cut the swf file embedded in the html now insert a table 100% width 100% height now center the table on the page and paste the swf file into the table it should be cenetered if not then click inside the table and choose center inside the table as well :beam:

---

<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:** [August 25, 2003, 5:42am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/3 "2003-08-25T05:42:10Z")

</div>

well, if you dont have dreamweaver you can just set those properties in your publish settings im pretty sure. you have to publish an html file along with your swf of course…

then on the html settings there should be a choice for alignment or something and just choose center…

the way that was mentioned above is probably superior since you have more control…but if you dont have dreamweaver…there is a way

blessings.

---

<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:** [August 25, 2003, 6:18am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/4 "2003-08-25T06:18:36Z")

</div>

here’s the code for the above

look for the

```php

<object>
your flash content
</object>

```

tags…and place div tags around these with the align property set to center, like this:

```php

<div align="center">
<object>
your flash content
</object>
</div>

```

here’s the deprecated way of doing it:

```php

<table align="center">
<tr>
<td>
<object>
flash content
</object>
</td>
</tr>
</table>

```

---

<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:** [August 25, 2003, 7:08am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/5 "2003-08-25T07:08:07Z")

</div>

And here’s how to place it in the horizontal and vertical middle:

```php
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD>
<OBJECT>
Code goes here
</OBJECT>
</td></tr></table>

```

---

<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:** [August 25, 2003, 10:54am UTC](https://forum.kirupa.com/t/centering-flash-movie-for-html/29274/6 "2003-08-25T10:54:00Z")

</div>

[[COLOR=red]Flash Exchange[/COLOR]](http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_us&view=sn110&viewName=Flash%20Exchange&authorid=0&page=0&scrollPos=0&subcatid=0&snid=sn110&itemnumber=-1&extid=0&catid=0) and download the “Center in Browser” extension… :thumb:
