Change opacity for sub div - HTML CSS CSS Property

HTML CSS examples for CSS Property:opacity

Description

Change opacity for sub 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">
#incomedialog {<!-- w w w  .j a va2 s  . c  o m-->
   width:100%;
   position:absolute;
   height:100%;
   min-height:301px;
   overflow:hidden;
   background-color:Chartreuse;
}

#incomedialog div {
   width:601px;
   position:absolute;
   left:0;
   right:0;
   height:471px;
   overflow:hidden;
   min-height:301px;
   background-color:yellow;
   border:3px solid blue;
   border-radius:4px;
   color:pink;
   top:71px;
}
</style> 
 </head> 
 <body> 
  <div id="incomedialog"> 
   <div>
     Lorem ipsum dolor sit amet, consectetur adipis 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials