The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Trouble getting flash objects aligned
ktrainyo
post Feb 28 2010, 12:29 AM
Post #1





Group: Members
Posts: 2
Joined: 28-February 10
Member No.: 11,238



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 www.gobblegreen.com.

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

<td align="center" valign="top" width=230 height=270>
<object width="225" height="315">
<param name="movie" value="http://www.gobblegreen.com/flash/as-seen-in.swf">
<embed src="http://www.gobblegreen.com/flash/as-seen-in.swf" width="225" height="315">
</embed>
</object></td>
<td align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,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="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
<td align="center" valign="top"><p><a href="http://www.gobblegreen.com/index.php?main_page=page&id=5"><img src="http://www.gobblegreen.com/ErinG-003.jpg" width="200" height="157" /></a></p>
<p><font face="Lucida Sans Unicode, Lucida Grande, sans-serif"><a href="http://www.gobblegreen.com/index.php?main_page=page&id=5"><font color="#000066"><b>Get fit with Erin!</b></font></a></font></p></td>
</tr>
</table>


What am I doing wrong?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 28 2010, 01:16 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,575
Joined: 9-August 06
Member No.: 6



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.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Feb 28 2010, 01:17 AM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,021
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
<object width="225" height="315">
The height specified here seems to be more than the height of the Flash animation.


--------------------
Darin McGrew
WDG Member since 1998
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ktrainyo
post Mar 2 2010, 01:18 AM
Post #4





Group: Members
Posts: 2
Joined: 28-February 10
Member No.: 11,238



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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 31st October 2014 - 05:53 PM