Page 120 - iPrime_V2.2_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;                             Table : Student
                                                              Roll No.    Name  Grade Gender
                      border-color:green;
                                                              1       Aarav   B     M
                      background-color:orange;
                                                              2       Gauransh A    M
                  }                                           3       Himakshi A    F
                                                              4       Rakshit  B    M
                  </style>
                  Using Color Property

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



                 118     Touchpad iPRIME (Ver. 2.2)–VII
   115   116   117   118   119   120   121   122   123   124   125