By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,012 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,012 IT Pros & Developers. It's quick & easy.

Object height problem in Firefox and Google Chrome

P: 426
When using an object tag to embed a video file everything looks fine in Internet Explorer and Safari. However I can't get it to display at all in Opera. More importantly in Firefox and Google Chrome the height doesn't work so that you get it wide and short which distorts the video and makes it looks like bad layout.

Expand|Select|Wrap|Line Numbers
  1. <object width="640px" height="480px" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject" standby="Loading Windows Media Player components..." codebase=",4,7,1112">
  2. <param value="my_video_path_and_name.wmv" name="FileName" />
  3. <param value="true" name="autostart" />
  4. <param value="false" name="ShowDisplay" />
  5. <param value="true" name="ShowControls" />
  6. <param value="false" name="ShowStatusBar" /><embed width="650px" height="480px" type="application/x-mplayer2" pluginspage="" src="my_video_path_and_name.wmv"></embed></object>
Could anyone help me please?
Jul 6 '10 #1
Share this Question
Share on Google+
2 Replies

P: 426
Any suggestions?
Jul 16 '10 #2

Expert 5K+
P: 7,435
'px' is not appropriate in HTML attributes. Remove px, leaving the value alone.
Jul 16 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.