Page 55 - TP_Prime_V2.2_Class7
P. 55
{
border:2px;
border-style:solid;
border-color:green;
border-spacing:15px;
}
</STYLE> HTML—LISTS AND TABLES
Table : Student
Roll No. Name Grade Gender
1 Aarav B M 53
2 Gauransh A M
3 Himakshi A F
4 Rakshit B M
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>
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;

