Page 42 - PortGPT_V2.1_C7_Flipbook
P. 42

Using width Property

                  The width property is used to specify the width of a box or table. 100% width will capture the complete
                  width of the web page.
                  For example,

                  <style>

                      table{width:50%}
                  </style>

                  Using padding Property

                  The padding property is used to specify the space around the content of a cell and the border of the
                  cell in a table. For example,

                  <style>
                  table, th, td
                  {
                      border:2px;
                      border-style:solid;

                      border-color:green;
                      border-spacing:15px;
                      padding:15px
                  }
                  </style>
                                                                                         Using padding Property
                  Using background-color Property

                  The background-color property is used to specify the colour for the background in a table on the web
                  page. You can apply colour in a cell, row or entire table. For example,

                   <style>
                  table, th, td
                  {
                      border:2px;
                      border-style:solid;
                      border-color:green;
                      background-color:orange;
                  }
                  </style>

                  Using color Property
                                                                                            Filling colour
                  The color property is used to specify the text colour. For
                  example,






                  40    Premium Edition-VII
   37   38   39   40   41   42   43   44   45   46   47