Opacity set - HTML CSS CSS Property

HTML CSS examples for CSS Property:opacity

Description

Opacity set

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lore</title> 
  <style type="text/css" media="screen">
.container {<!--from   www  . ja  v a  2 s.com-->
   opacity:0.4;
   background:yellow;
   height:401px;
   width:100%;
}

.over-lay {
   position:relative;
   bottom:251px;
   background:red;
   width:151px;
   height:151px;
   margin:0 auto;
}

.container>div {
   background:purple;
   width:201px;
   margin:51 auto;
}
</style> 
 </head> 
 <body> 
  <div class="container">
    Lorem ipsum dolor s 
   <div>
     Lorem ipsum dolor s 
   </div> 
  </div> 
  <div class="over-lay">
    Lorem ipsum dolor 
  </div>  
 </body>
</html>

Related Tutorials