# Web page alignment-center

**URL:** <https://forum.kirupa.com/t/web-page-alignment-center/16699>\
**Category:** Uncategorized\
**Created:** [March 27, 2003, 4:23pm UTC](https://forum.kirupa.com/t/web-page-alignment-center/16699 "2003-03-27T16:23:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m4non](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@m4non](https://forum.kirupa.com/u/m4non)\
**Post date:** [March 27, 2003, 4:23pm UTC](https://forum.kirupa.com/t/web-page-alignment-center/16699/1 "2003-03-27T16:23:34Z")

</div>

Hi all,

I have a Flash website and need to align the movie at the center of the page.

In the original .fla movie, I have set up the Flash aligment (file \> publish settings\>HTML) :

horizontal \> center  
vertical \> center

But, all the movies (pages) still stand on the left top alignment in actual HTML files.

Do I need to add any specific code for center aligment?

Thanks,

m4non

---

<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:** [March 27, 2003, 4:30pm UTC](https://forum.kirupa.com/t/web-page-alignment-center/16699/2 "2003-03-27T16:30:36Z")

</div>

Just put this code immediately after the opening \<body\> tag:

```php
<div align="center">

```

and remember to close the div tag!

That should do the trick.

Cello

---

<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:** [March 27, 2003, 5:38pm UTC](https://forum.kirupa.com/t/web-page-alignment-center/16699/3 "2003-03-27T17:38:08Z")

</div>

or add

```php
<center>

```

at the start of you html script and

```php
</center>

```

at the very bottom.

these must be the first and last tags
