Reputation: 1300
Is there any way i can set padding to the thead alone of a table?
Upvotes: 7
Views: 18529
Reputation: 2432
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Savings</th>
</tr>
<tr>
<td>Jhon</td>
<td>Smith</td>
<td>$200</td>
</tr>
</table>
<style>
table, td, th { border : 1px solid black; }
th { padding : 13px; }
td { padding : 15px; }
</style>
Upvotes: 5