Space between two rows in a table?
Is this possible via CSS? I'm trying tr.classname { border-spacing: 5em; }to no avail. Maybe I'm doing something wrong?
Inactive Tutor
answered 09/25/20
<!DOCTYPE html>
<html>
<head>
<title>space between two rows in the table</title>
</head>
<body>
<table border="1" style="border-collapse:separate;border-spacing:0 20px;">
<tr>
<td>row 1,col 1</td>
<td>row 1,col2</td>
</tr>
<br>
<tr>
<td>row 2,col 1</td>
<td>row 2,col 2</td>
</tr>
</table>
</body>
</html>
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.