ya3
March 30, 2006, 2:38pm
1
Okay, I’ve got a Flash movie in an HTML page. The SWF is 590px high, and 100% wide. That is, 100% of the HTML page’s width, which makes the movie centered horizontally , but I can’t figure out how to have it centered vertically . If I make the hieght 100%, it doesn’t work properly in all browsers.
Help?
Hi, this is something Ive done to center flash on my sites photolog: http://www.untitled-project.com/photolog/ (view source to see)
Add this CSS in the head:
<style type=“text/css”>
html, body {
width:100%;
height:100%;
padding:0;
margin:0;
background-color:#EAE7DF ;
}
</style>
And in the body:
<table width=“100%” height=“100%” border=“0” cellpadding=“0” cellspacing=“0”>
<tr>
<td align=“center” valign=“middle”><object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 ” width=“100%” height=“500”>
<param name=“menu” value=“false”>
<param name=“movie” value=“imageVue.swf”>
<param name=“quality” value=“high”>
<param name=“BGCOLOR” value="#EAE7DF ">
<param name=“FLASHVARS” value="">
<embed src=“imageVue.swf” width=“100%” height=“500” menu=“false” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer ” type=“application/x-shockwave-flash” bgcolor="#EAE7DF " flashvars=""></embed></object>
</td>
</tr>
</table>
That should do it
R
ya3
March 30, 2006, 4:02pm
3
Thanks so much. That’s EXACTLY what I’m looking for.
For your third (non-Random) post ever, that was extremely helpful