Add a transparent color layer above - HTML CSS CSS Property

HTML CSS examples for CSS Property:color

Description

Add a transparent color layer above

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">
body {<!--   ww  w.  j a  v  a 2 s.c  om-->
   background-color:Chartreuse;
   margin:0px;
}

.page-heading {
   background:yellow;
   opacity:0.5;
   margin:0;
   position:relative;
   width:100%;
   height:100vh;
   text-align:center;
   padding:73px 0px;
}
</style> 
 </head> 
 <body> 
  <div class="page-heading"> 
   <h1>TITLE BIG</h1> 
  </div>  
 </body>
</html>

Related Tutorials