Set a gray transparent background - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Set a gray transparent background

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

.divOuterCentro {<!-- w w  w.j  a va2  s  . co m-->
   background-color:rgba(0, 0, 0, 0.4);
   height:100%;
   width:100%;
   position:absolute;
}
.divCentro {
   text-align:center;
   width: 327px;
   height: 60px;
   margin-top: -23px;
   margin-left: -158px;
   left: 50%;
   position:absolute;
   top: 40%;
}


      </style> 
 </head> 
 <body> 
  <div class="divOuterCentro"> 
   <p class="divCentro"> <br> <br> <br> Processing... </p> 
  </div>  
 </body>
</html>

Related Tutorials