I was trying to make a cell in a table 1 pixel tall by using a method like
this:

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

When I don't put in doctype declaration statement at the beginning of my
page mozilla makes the cell 1 pixel tall as I expected but when I do put in
a doctype declaration the cell is as tall as it would be if there were text
in it.  After reading another post on this newsgroup about a simmilar
situation I am wondering which is the correct way that this is supposed to
be rendered.  I would like to make my site as standards complient as
possible but I would really like to have a cell that is 1 pixel tall.  I am
assuming that there is a good reason for the difference I just don't know
how to make it look the way I want.

Thanks for your help.

Ethan




Reply via email to