# Centering Flash in the html file

**URL:** <https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085>\
**Category:** Uncategorized\
**Created:** [August 21, 2003, 11:43pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085 "2003-08-21T23:43:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![oasis](https://avatars.discourse-cdn.com/v4/letter/o/a698b9/32.png) [@oasis](https://forum.kirupa.com/u/oasis)\
**Post date:** [August 21, 2003, 11:43pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/1 "2003-08-21T23:43:33Z")

</div>

Hey guys. I’ve done some revamping of my site and I need some help…

How do I center the Flash movie in my html file?.. No matter what resolution the viewer has, I always want the movie to be centered on screen. How do I achieve that?.. I could publish it by percentile, but I have graphics that chop above 800 X 600… Any way around this?..

Here’s a link to the original site… It’s set to confrom to the browser size… so at 1024 X 768 the graphics begin to deteriorate.

[Original Site](http://home.comcast.net/~hbh101/index.html)

-oasis-

---

<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 22, 2003, 1:27am UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/2 "2003-08-22T01:27:46Z")

</div>

in html  
make a table and make it 100% wide 100% tall (height/width)

make a table inside that table with the dimensions you would like

make the inside table align center…

Voila.

---

<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 22, 2003, 5:24pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/3 "2003-08-22T17:24:39Z")

</div>

Thank you so much… that’s exactly what I needed to know.

-oasis-

---

<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 22, 2003, 6:00pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/4 "2003-08-22T18:00:08Z")

</div>

This is easier:

```auto

< **TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><** TR align="center" valign="middle"><**TD>
SWF code goes here
< **/td><** /tr><**/table>

```

That aligns it in the perfect middle of the page, no matter what the res is.

---

<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 22, 2003, 6:22pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/5 "2003-08-22T18:22:17Z")

</div>

i now have a perma-grin… Thank you. 😉

-oasis-

---

<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 22, 2003, 8:10pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/6 "2003-08-22T20:10:30Z")

</div>

I’m really lazy - I just do this:

```php

<center>

//insert flash movie code

</center>

```

Heehee…

---

<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 22, 2003, 8:36pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/7 "2003-08-22T20:36:02Z")

</div>

Haha freddy. IF you are using dreamweaver, then just click on the flash app. and select “absolute center” from the drop down menu. then click the space to the right and hit the “align=centre” button.

---

<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 22, 2003, 10:57pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/8 "2003-08-22T22:57:28Z")

</div>

Awesome help guys… Thanks much!

-oasis-

---

<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:** [September 4, 2003, 3:37pm UTC](https://forum.kirupa.com/t/centering-flash-in-the-html-file/29085/9 "2003-09-04T15:37:45Z")

</div>

Thats easy enough in explorer and netscape, now try centering a table in opera browser, now thats the problem. 🙂
