Skip to content

Instantly share code, notes, and snippets.

@gpestana
Created July 31, 2014 17:57
Show Gist options
  • Save gpestana/01ffda4444b138500034 to your computer and use it in GitHub Desktop.
Save gpestana/01ffda4444b138500034 to your computer and use it in GitHub Desktop.
youtube video css
<div id="player" class=" watch-medium ">
<div id="theater-background"></div>
<div id="player-mole-container"></div> //here goes the player
<div class="clear"></div>
</div>
#theater-background{
position:absolute;
left:0;
margin-top:-10px;
width:100%;
height:520px;
-moz-transition:background-color .3s ease;
-webkit-transition:background-color .3s ease;
transition:background-color .3s ease
}
.watch-large #theater-background{
height:760px
}
#player-mole-container{
position:relative
}
.clear{
clear:both
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment