Forum Moderators: open

Message Too Old, No Replies

SWF displaying the wrong size

         

Greven

9:18 pm on Jan 30, 2006 (gmt 0)

10+ Year Member



I have embeded a movie file inside of a div tag, but whenever it is rendered by both IE and FF, the movie shows a white border on the sides for 15 px each.

The embeding code is such:


<div id="banner">
<object type="application/x-shockwave-flash" data="header.swf" width="897" height="130">
<param name="movie" value="header.swf" />
</object>
</div>

The movie is 897 x 130 according to Flash MX 2004, and if I display it in the flash viewer it is the right size.

Any ideas as to why I would be getting the white border on the sides? It's almost like I am setting the width wider than the movie is so it has to add in filler content.

rd123

4:07 pm on Feb 2, 2006 (gmt 0)

10+ Year Member



I had this problem a while back. Make sure that the width and height attibutes are in proportion. A quick check would be to delete the height attribute and see if the unwanted white bits disapear

Richard_N

4:46 pm on Feb 2, 2006 (gmt 0)



have you got padding set on the div by any chance? Also I presume you have actually defined the width and height of the div in the CSS file?