I have a table which contains a top-aligned table cell:
....
<tr style="height:40">
...
<td colspan="1" rowspan="2" align="left" valign="top"
style="overflow:hidden;">
...contents.explained.later...
</td>
...
</tr>
<tr style="height:136">
...
</tr>
....
Inside that table cell I have a <div> which is centered:
<div style="width:94px; height:106px; vertical-align:middle;
text-align:center"><img src="...not.important.now..." alt="An
image"></div>
The image is less than 94px tall and less than 106px wide, so there
should be some room between the top of the table cell and the top of
the image. But both IE6 and Mozilla 1.4 show the image top-aligned in
the table cell.
I could make more rows with less height such that some of them have a
combined height of 106px, and then put my image in a table cell
spanning just those rows. But for reasons I'm too embarrassed to
expand upon :-) I'd rather avoid making those extra rows.
So can I perhaps replace the div with something else to achieve the
desired effect? I'd like to specify that the image is centered in a
region 106px tall, and that region should be in a table cell 176px
(row of 40px plus row of 136px) tall?
tia,
Kai