I've got a centered p
that I use to hold my embedded live stream object and an iframe for the chat like so
Now, I have a JQuery
call that hides the chat,
<a id="hidechat" onClick="$('#chat_embed').hide();" href="#">[Hide Chat]</a>
But that ends up with the stream box pulled way off to the left
I'd love to have the chat re-align itself in the center of the screen without the ugly box on the right. I've tried setting a float:left;
but the text below it wraps around and generally breaks the entire layout.
Is this possible with my current layout?
CSS:
p
{
margin-left:auto;
margin-right:auto;
margin-bottom:1%;
background-color:#121212;
max-width:53%;
max-height:75%;
padding-top:25px;
padding-left:25px;
padding-right:25px;
padding-bottom:25px;
}
p.streamblock
{
padding-top:25px;
padding-left:25px;
padding-right:25px;
padding-bottom:25px;
max-width:1000px;
}
Embed code:
<object type="application/x-shockwave-flash" height="378" width="620" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=mychannel" bgcolor="#000000">
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />
<param name="flashvars" value="hostname=www.twitch.tv&channel=mychannel&auto_play=true&start_volume=25" />
</object>
<iframe frameborder="0" scrolling="no" id="chat_embed" src="http://twitch.tv/chat/embed?channel=tronasaurusx&popout_chat=true" height="378" width="350"></iframe>