Page 124 - 2620_Birla Open Mind C-7
P. 124

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>

























                  122  Premium Edition-VII
   119   120   121   122   123   124   125   126   127   128   129