Search This Blog

CSS Table With Padding Example

CSS Table With Padding Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
table, th, td {
border: 2px solid;
}

td {
padding:15px;
}
</style>
</head>
<body>
<h1> Table With Padding Example </h1>
<p> Here we use padding property in table td element </p>

<table>
<tr>
<th> Firstname </th>
<th> Lastname </th>
</tr>
<tr>
<td> Amit </td>
<td> Ankit </td>
</tr>
<tr>
<td> Smith </td>
<td> Singh </td>
</tr>
</table>

</body>
</html>
OUTPUT
CSS Table With Padding Example

No comments:

Post a Comment