TD HEIGHT not working

I’m trying to make the TD HEIGHT to 10 but it won’t budge. Here’s the code:

<table width=“100%” border=“1” cellspacing=“0” cellpadding=“0”>
<tr>
<td rowspan=“2” valign=“top” width=“225”><img src=
“images/whatever.gif” width=“225” height=“155”
alt=“” /></td>
<td height=“10”> </td>
</tr>

<tr>
<td> </td>
</tr>
</table>

Can someone help me determine the problem? I’m using XHTML 1.0, by the way. Thanks in advance.

Perhaps the fact that your cell is empty. You should never have that. Just place a transparent GIF in the cell.

Originally posted by Desdelena
Perhaps the fact that your cell is empty. You should never have that. Just place a transparent GIF in the cell.

Shouldn’t the cell resize if I added text to it? It doesn’t seem to change anything, the cell won’t resize at all. :frowning:

Anyone else can help?

Use a transparent gif 10px high…

Do you not have to add a table height for the cell height to work??

Who cares, I’m with everyone else. Transparent Gif.

Originally posted by moonman
Do you not have to add a table height for the cell height to work??

No; the height attribute for the TABLE element is invalid. Even the height attribute for the TD element is deprecated as of this post. Use style sheets (CSS) for greater control over this stuff. And may transparent GIFs die a quiet death.

Maybe I should test my theory’s before I open my mouth :smiley:

Originally posted by mattjacob
And may transparent GIFs die a quiet death.

Blasphemy! After all transparent gifs have done for us, you want to kill them?! :frowning:

Goof

You may take our transparent gifs, but you’ll never take OUR FREEDOM!!!

Originally posted by mattjacob

No; the height attribute for the TABLE element is invalid. Even the height attribute for the TD element is deprecated as of this post. Use style sheets (CSS) for greater control over this stuff. And may transparent GIFs die a quiet death.

What’s the CSS code to resize the cell height, please?

Use css padding or margin in the cell.

Transparent gifs should go away. They were nice back in the 90’s when David Siegel’s Killer Site’s book came out.Killer Sites
(Which I still have a worn and faded copy on my shelf right here.) Its a good book but we should move beyond Third Generation Site Design.

Why all the negative feelings towards using tansparent GIFs? CSS is good but Id still say never have an empty tag.

&nbsp;

Originally posted by Checkmate
<td rowspan=“2” valign=“top” width=“225”><img src=
“images/whatever.gif” width=“225” height=“155”
alt=“” /></td>
<td height=“10”> </td>

Of cause it won’t work. You made the height of the image in the first cell 155, which means the second cell would not be able to go below 155.