Forum Moderators: open

Message Too Old, No Replies

OBJECT hspace not working in Firefox

code placed in both object and embed tag for a flash element

         

inveni0

1:21 pm on Feb 24, 2007 (gmt 0)

10+ Year Member



I have code on my site to put a horizontal space around my flash object. It shows fine in IE7 and IE6, but Firefox just won't do it!

The code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" align="left" height="180" hspace="10" vspace="5" width="275">
<param name="movie" value="slideshow.swf">
<param name="quality" value="high">

<embed src="slideshow.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" align="left" height="180" hspace="10" vspace="5" width="275">
</object>

In Firefox, it almost appears that the hspace is all shifted to the left side. Is there a right-hspace and left-hspace in firefox? I don't think there is, but I just can't understand the issue.

tedster

6:52 pm on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried CSS padding or margin style rules? Much easier to work with and they definitely give you the ability to set different amounts of space on the left and right.

Note that the hspace and vspace attributes are now deprecated:
[w3.org...]