CSS3 Opacity


Syntax :

E { opacity:number;}

Number : Is in decimal fraction. That is a number between 0.0 and 1.0.
0.0                                                  0.0  is fully transparent and 1.0 is fully opaque.

       Example
       CSS :
     
      #opacity {
                                      background-color:black;
                                      height:100px;
                                      width:100px;
                                      opacity:.5;
                             }
       HTML
        <div id="opacity"></div>

       Output:
       Before Opacity
       After Opacity : 




No comments: