Page 120 - Trackpad_ipro 4.1_Class7
P. 120

border-style:solid;

                      border-color:green;
                      border-spacing:15px;

                      padding:15px

                  }
                  </style>




                                                            Table : Student


                                                Roll No.      Name     Grade    Gender


                                                1          Aarav       B        M


                                                2          Gauransh    A        M


                                                3          Himakshi    A        F

                                                4          Rakshit     B        M





                  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

                  The color property is used to specify the text colour. For example:
                  <style>
                  table, th, td




                   118     iPro (Ver. 4.1)-VII
   115   116   117   118   119   120   121   122   123   124   125