W3C home > Mailing lists > Public > www-html@w3.org > June 2002

Re: HTML Table Formatting Question

From: Nigel Peck <Nigel.Peck@itm-solutions.co.uk>
Date: Wed, 26 Jun 2002 11:44:20 +0100
Message-Id: <sd19a92f.060@itm-solutions.co.uk>
To: <clarence@mac.com>, <www-html@w3.org>

I used <td style="font-size:0px"> to get around this, the problem is
explained at


You will find a much more active discussion list at
http://www.hwg.org/, try hwg-basics or hwg-techniques.

>>> Clarence <clarence@mac.com> 06/20/02 10:48pm >>>

Hi all,
I'm new to the list and have a question regarding HTML tables and the 
W3C spec. I'm not sure if this should go to this list of the Style
so please let me know if I'm posting to the wrong list.

After reading some threads in the archives, I'm still at a loss at how

to do something like the following:

<table cellpadding="0" cellspacing="0" border="0" height="1">
	<td height="1" bgcolor="#CCCCCC"><img src="spacer.gif"
height="1" width="100"></td>

We're testing on Mozilla and it seems that the image is now adjusted to

the baseline in the cell - which appears to be in the center causing
cell height to increase.
I read that this can be adjusted in the style sheet using
but doing the following:

td.spacer {
	line-height: 0;

<table cellpadding="0" cellspacing="0" border="0" height="1">
	<td class="spacer" height="1" bgcolor="#CCCCCC"><img 
src="spacer.gif" border="0" height="1" width="100"></td>

Does not work as well. Is this functionality no longer supported?
let me know. Thanks.


ITM Business Solutions
Unit 4
Nine Trees Trading Estate
Morthen Road
S66 9JG

Tel: 01709 703288
Fax: 01709 701549

Help Desk
Tel:01709 530424
Fax: 01709 702159

CONFIDENTIALITY NOTICE: This message is intended only for the use of
the individual or entity to which it is addressed, and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law.
Received on Wednesday, 26 June 2002 06:45:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:59 UTC