CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>CSS Tables - Table Border Collapse</title> <style> table, td{ border: 1px solid #000; border-collapse: collapse; } </style> </head> <body> <h2>CSS Tables - Table Border Collapse</h2> <hr> Below is a simplest table with borders collapsed: <table> <thead> <tr> <td>Customer</td> <td>Products</td> <td>Address</td> </tr> </thead> <tbody> <tr> <td>Gregory A Washington</td> <td>Pasta and Noodles</td> <td>998 George Street, Florida</td> </tr> <tr> <td>Veronika</td> <td>Tea, Bread and Milk</td> <td>352 Sundown Lane, Iowa</td> </tr> <tr> <td>Alfred</td> <td>Cereal and Muesli</td> <td>4528 Baker Avenue, Dallas</td> </tr> <tr> <td>Christi J Herman</td> <td>Dried Fruits and Nuts </td> <td>1209 Ryder Avenue, maine</td> </tr> </tbody> </table> </body> </html>