- From: Nigel Peck <Nigel.Peck@itm-solutions.co.uk>
- Date: Wed, 26 Jun 2002 11:44:20 +0100
- To: <clarence@mac.com>, <www-html@w3.org>
I used <td style="font-size:0px"> to get around this, the problem is
explained at
http://developer.netscape.com/evangelism/docs/articles/img-table/
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
list,
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">
<tr>
<td height="1" bgcolor="#CCCCCC"><img src="spacer.gif"
border="0"
height="1" width="100"></td>
</tr>
</table>
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
the
cell height to increase.
I read that this can be adjusted in the style sheet using
line-height:0,
but doing the following:
td.spacer {
line-height: 0;
}
<table cellpadding="0" cellspacing="0" border="0" height="1">
<tr>
<td class="spacer" height="1" bgcolor="#CCCCCC"><img
src="spacer.gif" border="0" height="1" width="100"></td>
</tr>
</table>
Does not work as well. Is this functionality no longer supported?
Please
let me know. Thanks.
Clarence
ITM Business Solutions
Unit 4
Nine Trees Trading Estate
Morthen Road
Rotherham
S66 9JG
Reception
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