PDA

View Full Version : Having Allignment Problems


SunnBlue
03-12-2010, 02:17 AM
having trouble centering my Flash site.

Tried: fscommand("allowScale", "true");

and then tried instead: Stage.scaleMode = "allowScale";

to no avail. My site is still left alligned on Firefox, Safari, and Internet Explorer.

Any advise PLEASE!

SunnBlue.

jjfattz
03-12-2010, 03:23 AM
This could be an HTML issue. How are you embedding the flash?

SunnBlue
03-14-2010, 12:26 AM
acutally, I'm just uploading the swf & html straight to the web.

yell0wdart
03-14-2010, 01:12 AM
Where can we see an example of the problem? Should be able to fix it with a bit of CSS. Just wrap your embed code in a <div> and apply some styling to it:


<div class="flash-wrapper">
<!-- embed code in here -->
</div>


In your CSS, just apply "auto" to the left and right margins:


div.flash-wrapper
{
margin: 0px auto;
}