W3C home > Mailing lists > Public > www-style@w3.org > July 2001

Re: Cellspacing in CSS1 or CSS2

From: Clover Andrew <aclover@1value.com>
Date: Wed, 18 Jul 2001 11:35:38 +0200
Message-ID: <D58B0195B58937489E89124469E57CA20D5087@EX1.1value.com>
To: <www-style@w3.org>
Eric Meyer <eric@meyerweb.com> wrote:

> Try 'border-spacing' in CSS2, section 17

Indeed. CSS has cell spacing covered, even if browser support
isn't perfect.

For slicing tables and others, the following set of styles
produces tables without spacing on all but Netscape 4, which
still needs the dreaded 'cellspacing="0" cellpadding="0"
border="0"':

  table { border-collapse: collapse; border-spacing: 0; }
  td { padding: 0; }
  td>img:first-node:last-node { display: block }

-- 
Andrew Clover
Technical Consultant
1VALUE.com AG
Received on Wednesday, 18 July 2001 05:37:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT