Opacity Examples in CSS

Definition :

Opacity is meant for making the content to display properly or to display in a water mark manner.

Program :

<html>

     <style type=”text/css”>

                    div

                                {

                                margin-top: 100px;

                                width: 100px;

                                height: 100px;

                                font-size: 50px;

                                opacity: 0.3;

                                }

                </style>

                <body>

                    <div> Hello </div>

                </body>

</html>

Leave a Reply

Your email address will not be published. Required fields are marked *