# How do I center my site?

**URL:** <https://forum.kirupa.com/t/how-do-i-center-my-site/263279>\
**Category:** flash\
**Created:** [June 13, 2008, 11:00pm UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279 "2008-06-13T23:00:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nospinstev](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nospinstev](https://forum.kirupa.com/u/nospinstev)\
**Post date:** [June 13, 2008, 11:00pm UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279/1 "2008-06-13T23:00:43Z")

</div>

Im new to Flash…trying to get my site to center on the browser window but can’t

I’ve tried:

Publish settings \> HTML \> HTML alignment \> set to Default but it doesn’t work, it still places the swf flush left.

and:

Publish setting \> HTML \> Flash alignment \> horizontal centered but that doesn’t work…

can anyone tell me what I’m missing?

many thanks!

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [June 14, 2008, 12:06am UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279/2 "2008-06-14T00:06:16Z")

</div>

> **[HTML Editor, Website & Web Design Software](https://www.coffeecup.com/)**
>
> Leader in Responsive Web Design Tools and HTML Software. Try our HTML Editor, innovative Responsive Email Designer or Responsive Prototyping Software today.

---

<div class="post-metadata">

**Author:** ![vivalibre](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vivalibre](https://forum.kirupa.com/u/vivalibre)\
**Post date:** [June 14, 2008, 1:18am UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279/3 "2008-06-14T01:18:07Z")

</div>

I’m a Flash beginner, so others may have better answers, but… if you use Dreamweaver I know you can open the published html file in Dreamweaver, select/click on the swf, go to Text \> Align \> Center and that works. Why it’s under the Text menu beats me, but whatever gets you there I guess!

---

<div class="post-metadata">

**Author:** ![nospinstev](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nospinstev](https://forum.kirupa.com/u/nospinstev)\
**Post date:** [June 16, 2008, 6:03pm UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279/4 "2008-06-16T18:03:45Z")

</div>

I used the other poster’s technique; opening my index file in DW and setting the text alignment to centered.

I checked out your link though and wish to understand it. Are you suggesting I nest my entire swf in an mov? Or, are your instructions used to adjust the actual HTML code in my published index file?

Thanks again.

---

<div class="post-metadata">

**Author:** ![nospinstev](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nospinstev](https://forum.kirupa.com/u/nospinstev)\
**Post date:** [June 16, 2008, 6:04pm UTC](https://forum.kirupa.com/t/how-do-i-center-my-site/263279/5 "2008-06-16T18:04:31Z")

</div>

that works!
