Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <table id="myTable" border="1" style="border-spacing:10px;"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$150</td> </tr> </table> <br> <button type="button" onclick="myFunction()">Return the space between the cells in the table</button> <script> function myFunction() { alert(document.getElementById("myTable").style.borderSpacing); } </script> </body> </html>