Responsive html overlay on top of page - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Responsive html overlay on top of page

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">

.wrapper {<!--from   w  w  w.j  av  a  2  s .  c  o  m-->
   position:absolute;
   background:red;
   opacity:0.9;
   top:30px;
}
.overlaymain {
   position:absolute;
}


      </style> 
 </head> 
 <body>
   this is a test
  <br> 
  <br> this is a test this is a test this is a test this is a test this is a test
  <div class="wrapper"> 
   <div class="overlaymain"> 
    <img class="overlayimage" src="https://www.java2s.com/style/demo/Google-Chrome.png"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials