Page 110 - TP_Plus_v4_Class7
P. 110

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 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>

























                  108  Plus (Ver. 4.0)-VII
   105   106   107   108   109   110   111   112   113   114   115