<!DOCTYPE HTML> <html> <head> <title>Shrink-wrapping of tables</title> <style type="text/css"> table, td { border: none; margin: 0; padding: 0; border-spacing: 0; } span { display: inline-block; width: 50px; background: yellow; color: black; } </style> </head> <body> <div style="width: 20px"><table><tr> <td style="background:aqua;color:aqua"><span>x</span>​<span>x</span>​<span>x</span>​<span>x</span></td> </tr></table></div> </body> </html>