Page 113 - iPro_trackGPT_V5_Class7
P. 113
table, th, td
{
border:2px;
border-style:solid;
border-color:green;
border-spacing: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 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;
Lists and Tables in HTML 111

