CSS Opacity on entire body tag except on one div - HTML CSS CSS Property

HTML CSS examples for CSS Property:opacity

Description

CSS Opacity on entire body tag except on one div

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">
p.pTest {<!-- w  ww.ja  va 2s  .  com-->
   height:201px;
   width:201px;
   background-color:Chartreuse;
   opacity:0.3;
}

#loadingImageFc {
   position:fixed;
   top:51%;
   left:51%;
   transform:translate(-51%, -51%);
   z-index:10000;
}
</style> 
 </head> 
 <body> 
  <p class="pTest">Lore</p> 
  <div id="loadingImageFc"> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
  </div>  
 </body>
</html>

Related Tutorials