This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2007 > Problem with Flash Centering





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with Flash Centering
LisaSeels

2007-08-20, 6:16 pm

Hello, I am somewhat new to Flash. I have a reference book that doesn't detail
what to do if the SWF and HTML file is not centered in the middle of the
screen. It only gives me the option of top, bottom,left, or right. Is there a
way to center the viewing area? Or should I make my work area a different
size? Right now it is 900x540 pixels to accomodate smaller monitors.

Help please!



dzedward

2007-08-20, 6:16 pm

place your object tag in this, it will center it vertically and horizontally

<div style="position: absolute; top: 50%;display: table-cell; vertical-align:
middle; text-align: center; width: 100%; padding: 0;">


</div>

LisaSeels

2007-08-21, 6:16 pm

I opened the HTML file in Flash and pasted your code at the top but it didn't work. Am I approaching that the right way?
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews