Page 89 - Modular_V1.1_Flipbook
P. 89

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:  <P STYLE=“MARGIN:Value;”>
                               TEXT

                               </P>
                               [OR]
                               <P STYLE=“MARGIN-TOP:Value; MARGIN-BOTTOM:Value;

                               MARGIN-RIGHT:Value; MARGIN-LEFT:Value;”>
                               TEXT
                               </P>
                 Let us create a web page to use margins.

                 <HTML>
                 <HEAD>

                 ILLUSTRATION OF MARGIN
                 </HEAD>
                 <P STYLE="MARGIN-TOP:200PX;
                        MARGIN-BOTTOM:100PX;

                        MARGIN-RIGHT:200PX;
                        MARGIN-LEFT:120PX;">
                 With the introduction of computers, the business world was changed forever.

                 Using  computers  and software,  businesses  use information  technology  to
                 ensure that their departments run smoothly. They use information technology
                 in a number of different departments including human resources, finance,
                 manufacturing, and security.
                 </P>

                 </HTML>

























                                                             Using margins

                                                                                          Cascading Style Sheets  87
   84   85   86   87   88   89   90   91   92   93   94