# How do I center the stage of my swf in a web browser?

**URL:** <https://forum.kirupa.com/t/how-do-i-center-the-stage-of-my-swf-in-a-web-browser/258869>\
**Category:** Uncategorized\
**Created:** [April 29, 2008, 3:30am UTC](https://forum.kirupa.com/t/how-do-i-center-the-stage-of-my-swf-in-a-web-browser/258869 "2008-04-29T03:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyrione](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@tyrione](https://forum.kirupa.com/u/tyrione)\
**Post date:** [April 29, 2008, 3:30am UTC](https://forum.kirupa.com/t/how-do-i-center-the-stage-of-my-swf-in-a-web-browser/258869/1 "2008-04-29T03:30:28Z")

</div>

Hey,

I have a really wide flash page, but the main portion of it is in the center  
of the .swf. My question is how do I make the center of my .swf in the center  
of a web browser so that when the user resizes the browser, the center of the stage stays in the center of the browser? Right now it has the left side of the .swf aligned with the  
left edge of the browser so the center of my .swf is usually being cut off by  
the right edge of the browser and users have to scroll to the right to see the  
main portion of the site…I’m sorry if that’s somewhat confusing, but any help  
at all would be appreciated. Thanks!

Dave
