View Full Version : Center aligned webpage
ketan
06-08-2005, 08:12 AM
Hi,
When I publish my flash-site in html, I see it left aligned. How to make it center aligned. :o
Thanks
merlinvicki
06-08-2005, 10:09 AM
hi ketan,
if u want ur movie to be horizontally as well as vertically centered, use this code for ur html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>My Page</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY scroll="auto" bgcolor="#000000" marginwidth="0" marginheight="0" topmargin="0" leftmargin="12">
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0">
<TR align="center" valign="middle">
<TD>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="990" height="540" id="home.swf" ALIGN=""><PARAM NAME=movie VALUE="home.swf"> <PARAM NAME="quality" VALUE="high"> <param name="menu" value="true" /> <EMBED src="home.swf" quality=high menu="true" WIDTH="990" HEIGHT="540" NAME="home.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
Note: replace the filenames given with ur filenames as well as the height/width values.
U can view the working sample at my website also: http://www.merlinvicki.com
If u cant figure out the html then u can also try out this flash extension:
http://www.merlinvicki.com/samples/centered.zip
Rem u need the extension manager installed to use this. Follow the procedures provided. If u face any problems "POST"
ketan
06-08-2005, 07:14 PM
Thanks but unfortunately i could not make it work.
I give below my code. If you can correct it to display horizontally centered.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Main_file_1</title>
</head>
<body bgcolor="#cccccc">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="775" height="550" id="Main_file_1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Main_file_1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<embed src="Main_file_1.swf" quality="high" bgcolor="#cccccc" width="775" height="550" name="Main_file_1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Thanks
Ketan
Flash Gordon
06-08-2005, 08:02 PM
<div align="center">
flash stuff
</div>
merlinvicki
06-09-2005, 09:54 AM
Here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Main_file_1</title>
</head>
<body bgcolor="#cccccc">
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0">
<TR align="center" valign="middle">
<TD> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="775" height="550" id="Main_file_1">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Main_file_1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<embed src="Main_file_1.swf" quality="high" bgcolor="#cccccc" width="775" height="550" name="Main_file_1" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object> </TD>
</TR>
</TABLE>
</body>
</html>
:) Keep Flashing!
ketan
06-10-2005, 11:15 AM
Thanks a lot... :p
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.