Page 124 - CA 165 ver 1.0 Class 10
P. 124

CSS MARGINS
                  CSS ‘margin’ properties enable to create space around an HTML element, outside any border. It is also
                  possible to use negative values to overlap the content. Properties to set margin around an element are:

                    margin: It specifies the top, right, left and bottom margin around an element.
                    margin-bottom: It is used to set the bottom margin of an element.

                    margin-top: It is used to set the top margin of an element.

                    margin-left: It is used to set the left margin of an element.
                    margin-right: It is used to set the right margin of an element.

                  Syntax to use the 'margin' property is as follows:

                    <P STYLE=“MARGIN-TOP:Value; MARGIN-BOTTOM:Value; MARGIN-RIGHT:Value;
                     MARGIN-LEFT:Value;”>
                    TEXT
                    </P>




































                    CSS HEIGHT AND WIDTH

                  The height and width properties enable to set the height and width of an element. It is also used to set
                  the height and width of the area inside the border, margin, etc. of the element.
                  The height and width can be specified in length whose values can be in ‘px’, ‘cm’, etc. or in percent (%) of
                  the containing block. Syntax to use the 'height' and 'width' properties of CSS is as follows:

                    <P STYLE=“HEIGHT:Value; WIDTH:Value”>

                    TEXT
                    </P>



                   122   Touchpad Computer Applications-X
   119   120   121   122   123   124   125   126   127   128   129