Press "Enter" to skip to content

Scale Examples in CSS

Last updated on October 5, 2019

Definition :

The scale() function defines a transformation that resizes an element on the 2d place because the amount of scaling is defined by a vector it can resize the horizontal and vertical dimensions at a different scales.

Program :

<html>

     <style type=”text/css”>

                     div

                                 {

                                 margin-top: 100px;

                                 margin-left: 100px;

                                 width: 100px;

                                 height: 100px;

                                 font-size: 25px;

                                 border: 1px solid red;

                                 background-color: green;

                                 transform: scale(3,3);

                                 }

                </style>

                <body>

                     <div> Hello </div>

                </body>

</html>

Be First to Comment

    Leave a Reply

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