<!DOCTYPE html>
<html>
<head>
<title>CSS border-spacing property</title>
<style>
table, td, th {
margin-top: 15px;
border: 1px solid black;
border-collapse: separate;
}
.one {
border-spacing: 20px;
}
.two {
border-spacing: 30px 10px;
}
</style>
</head>
<body>
<code>One value specified, sets the both horizontal and vertical border spacing.</code>
<table class="one">
<tr>
<th>Name</th>
<th>Address</th>
</tr>
<tr>
<td>Opal Kole</td>
<td>63 street Ct.</td>
</tr>
<tr>
<td>Max Miller</td>
<td>41 NEW ROAD.</td>
</tr>
</table>
<br />
<code>Two value specified, the first value sets the horizontal border spacing, and the second value sets the vertical border spacing.</code>
<table class="two">
<tr>
<th>Name</th>
<th>Address</th>
</tr>
<tr>
<td>Opal Kole</td>
<td>63 street Ct.</td>
</tr>
<tr>
<td>Max Miller</td>
<td>41 NEW ROAD.</td>
</tr>
</table>
</body>
</html>