Help - Search - Members - Calendar
Full Version: Trouble getting flash objects aligned
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
Hi everyone. I am running a site using zen cart so it is very limited as far as the html allowed goes within the set pages. I am trying to get all the flash elements on our homepage to line up to the top of the table I have them in. I will post the code below. The website in question is

<table border="0" bordercolor="#FFCC00" style="background-color:#FFFFFF" cellpadding="0" cellspacing="0">

<td align="center" valign="top" width=230 height=270>
<object width="225" height="315">
<param name="movie" value="">
<embed src="" width="225" height="315">
<td align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="480" height="270" align="middle">
<param name="allowFullScreen" value="false"/>
<param name="movie" value="FLV/GG-TV.swf?xml_path=FLV/slides.xml" />
<param name="quality" value="high" />
<embed src="FLV/GG-TV.swf?xml_path=FLV/slides.xml" width="480" height="270" quality="high" allowFullScreen="false" pluginspage="" type="application/x-shockwave-flash"></embed>
<td align="center" valign="top"><p><a href=""><img src="" width="200" height="157" /></a></p>
<p><font face="Lucida Sans Unicode, Lucida Grande, sans-serif"><a href=""><font color="#000066"><b>Get fit with Erin!</b></font></a></font></p></td>

What am I doing wrong?
They are at the top. But you try to resize the left one disproportionately with HTML. Its native proportions seem to be 225 by 200 or thereabout rather than 225 by 315. It seems flash pad with a white background rather than distort the movie. I don't know if that's the norm. I'm not into flash. If you rightclick in the white area above the movie you can see it's flash.

Furthermore you've set the table cell's height to 85 pixels less than the height you want the flash to have. Usually there is no need to use height on table cells with content.
Darin McGrew
<object width="225" height="315">
The height specified here seems to be more than the height of the Flash animation.
biggrin.gif Thank you guys! I just had the wrong aspect in trying to resize it. Now that I have the correct size it lines up!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.