PDA

View Full Version : Can't align SWF right in IE !


Sum01
06-10-2003, 04:26 PM
Help Needed!

Can someone please tell me how to align an embedded SWF right in IE 6? Check http://www.2cdigitaldreams.com/MTL2006/MTL2006_template_04.htm

The flash animation on the right aligns both in Netscape and Opera, but in IE it just won't go!

Complete code for the banner is

<table width="100%" height="175" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="337" height="175" align="left" valign="top" background="images/T05_topSpacer.jpg"><div align="left"><img src="images/T05_logo.jpg" width="336" height="175"></div></td>
<td height="175" valign="top" background="images/T05_topSpacer.jpg"></td>
<td width="401" height="175" align="right" valign="top" background="images/T05_topSpacer.jpg">
<div align="right">
<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="401" height="175" hspace="0" align="right">
<param name="movie" value="images/animation.swf">
<param name="quality" value="high">
<embed src="images/animation.swf" width="401" height="175" hspace="0" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed></object>
</div></td>
</tr>
</table>

Any help would be greatly appreciated.

Sualdam
06-10-2003, 09:36 PM
This works for me:
<table width="100%" border="0">
<tr>
<td>
<div align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="32" height="32">
<param name=movie value="timeline%20explain.swf">
<param name=quality value=high>
<embed src="timeline%20explain.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32">
</embed>
</object></div>
</td>
</tr>
</table>
It is the movie embed code inside a single-celled 100% wide table with align-right enabled.

Sum01
06-12-2003, 09:25 PM
Thanks guys!

Getting rid of the the measurements and div tags seems to have worked. It's now all aligned nicely.

thanks once again for the help.