Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Making swf height and width scale to container size

currently using jquery flash embed, but open to other options


master w bates III

7:59 am on Jun 19, 2009 (gmt 0)

5+ Year Member

I am currently using jquery flash plugin to embed a slideshow swf into a fluid CSS layout. I am open to other embedding options.

I have a div with out height specified that I would like to embed the movie into. I have a short and wide flash move (900x 300).

How can I get the movie to fit in its container and proportionately scale its height and width when the window size is changed?

When I put an image in the box it scales proportionally to the size of the div as the div gets slimmer. When I do this with the swf it maintains it's height and displays the canvas background as the swf gets proportionally smaller.

Are there any simple embed properties that I can use to accomplish this?


Featured Threads

Hot Threads This Week

Hot Threads This Month