Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 114 - 2626_South Point_C-7
P. 114

    Using border-color Property
                      The border-color property allows you to apply a colour to the border. For example,

                        <STYLE>
                        table, th, td
                        {

                        border:2px;
                        border-style:solid;
                        border-color:green;
                        }
                                                                      Using border, border-style and border color Property
                        </STYLE>

                      In the preceding code, you have seen that rows are created by using the <TR> tag. Rows are further
                      divided into cells by using the <TD> tag. These cells contain data of the table.

                      Using border-spacing Property

                      The border-spacing property is used to specify the space between the borders of adjacent cells.
                      For example:

                        <STYLE>
                        table, th, td

                        {
                        border:2px;
                        border-style:solid;
                        border-color:green;
                        border-spacing:15px;
                        }
                                                                                  Using border-spacing property
                        </STYLE>

                      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>

                      112   Premium Edition-VII

| 109 110 111 112 113 114 115 116 117 118 119 |