PDA

View Full Version : HOW DO I GET this 800x600 FLASH SITE CENTERED WITHIN A BROWSER?



morroney
January 21st, 2007, 10:13 AM
i'm bummed! thought i had this done but when i published my html file the movie is totally not centered in the browser...i have a feeling this might be an easy fix?

jazbecar
January 21st, 2007, 11:00 AM
i'm bummed! thought i had this done but when i published my html file the movie is totally not centered in the browser...i have a feeling this might be an easy fix?
Are U using layers or tables ?

safa_uk
January 21st, 2007, 11:09 AM
very simple
all you need to do in your HTML file is add a tag to make it centered

open your HTML file and were the embed tag is for the flash location above it write this <center> and after all the flash stuff type this </center>

so for an example



<center>

all your flash stuff goes here

</center>


this must be done in the HTML file not the flash file

JoshuaJonah
January 21st, 2007, 12:13 PM
it can be done in flash too

pablo 2006
January 21st, 2007, 01:07 PM
Check out www.gotoandlearn.com > "Full Browser Flash" video tutorial.

Cheers,
Pablo

morroney
January 21st, 2007, 05:07 PM
thanks guys you rule!

flashead
January 21st, 2007, 06:01 PM
you can center a div both horizontally and vertically with a little css:

#flashcontent {
width:800px;
height:600px;
position:absolute;
top:50%;
left:50%;
margin:-300px auto auto -400px;
}

k.