Overlay on top of a responsive video - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Overlay on top of a responsive video

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.vimeo-container {<!--from   w  ww.j a  v  a  2s  .  c  o  m-->
   position:fixed;
   width:100%;
   height:100%;
   overflow:hidden;
   max-width:100%;
}

.vimeo-container .overlay {
   position:absolute;
   width:100%;
   height:100%;
   background:Chartreuse;
   opacity:0.6;
   z-index:1000;
}

.vimeo-container .overlay .text-container {
   width:100%;
   text-align:center;
}

.vimeo-container .overlay .text-container h1 {
   color:yellow;
   text-transform:uppercase;
}

.vimeo-container iframe,
.vimeo-container object,
.vimeo-container embed {
   position:absolute;
   top:0;
   left:0;
   width:100%;
   height:100%;
}
</style> 
 </head> 
 <body> 
  <div class="vimeo-container"> 
   <div class="overlay"> 
    <div class="text-container"> 
     <h1>Lorem ipsum </h1> 
    </div> 
   </div> 
   <iframe src="https://" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> 
   <p> <a href="https://">Lorem ipsum </a>Lorem <a href="https://vimeo.com/animadetv">Lorem i</a>Lore<a href="https://vimeo.com">Lorem</a>Lor</p> 
  </div>  
 </body>
</html>

Related Tutorials