Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> table, td, th { border: 1px solid black; } .table { border-collapse: separate; border-spacing: 20px; background-color: #eee; } </style> </head> <body> <h2>Beispiel für border-spacing: 20px;</h2> <table class="table"> <tr> <th>Vorname</th> <th>Nachname</th> </tr> <tr> <td>Mary</td> <td>Peterson</td> </tr> <tr> <td>Maxim</td> <td>Brown</td> </tr> </table> </body> </html>