Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Opacity in CSS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 223
    Comment on it

    To specify the how transparent an element is, we use opacity. Basically it defines the clarity of the image.

    Example

    <!DOCTYPE html>  
    <html>  
    <head>  
    <style>  
    img.t {  
        opacity: 0.8;  
    
    }  
    </style>  
    </head>  
    <body>  
    <p>Normal Image</p>  
    <img src="/css/images/r.jpg" alt="alt image">  
    <p>Transparent Image</p>  
    <img class="t" src="/css/images/rr.jpg" alt="transparent rose">  
    </body>  
    </html>  
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: