Jump to content

Auto Size Flash Content Inside Div


googlexx

Recommended Posts

Hey everyone, I'm having some trouble sizing a flash object inside a div.

 

I'm trying to get it when you resize the window the flash objects resizes as well but it keeps its dimensions.

This is what I have:

 

When I change #flashcontent to height and width of 100% it does what I want it to do but I dont want it the entire size of the page I'm trying to get it the full size of a div. Any help is appreciated. Thanks

<style type="text/css">
html {
  height: 100%;
}
#flashcontent {
  height: 480px;
  width: 720px;
}
#content {
  position: absolute;
  height: 100%;
  width: 100%;
}
/* end hide */
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #eee;
}
</style>


</head>

<body>

<div id="content">
<div id="flashcontent">

<object style='height:100%;' type="application/x-shockwave-flash" height="100%" width="100%" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=dotahut" bgcolor="#000000"><param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" /><param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="hostname=www.twitch.tv&channel=dotahut&auto_play=true&start_volume=25" /></object>

</div>
</div>
           
</body>
Link to comment
https://forums.phpfreaks.com/topic/276790-auto-size-flash-content-inside-div/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.