Forum Moderators: open
Can someone please assist me in setting table row and column attributes so that the height of each row is specified?
I have a table that has several nested tables in it. The top two rows of the main table had specific heights of 65 px and 3 px (I am lining up images). These tops rows were behaving. The rest of my rows and the rows of my nested tables weren't. As I messed with the table trying to line up images and the spacing I desired the top two rows (which I didn't touch) stop behaving. Now all my column widths are fine but my heights have gaps.
I have tried putting in attributes everywhere (even places I know they don't go) to the point that I have confused my self and my code is probably mush.
Any suggestions?
What I do at times is to create an extra table column and fill its cells with spacer gifs - of the height I want to maintain for each row. That way no browser will collapse the height of the row to a minimum. And I don't need any attributes then, either.
I am totally confused
<table summary="Button Table" cellpadding="0" cellspacing="0"
height="270">
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Home_Button.gif" width="140" height="45" alt=
"Home_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Newsletter_Button.gif" width="140" height="45" alt=
"Newsletter_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Mission_Button.gif" width="140" height="45" alt=
"Mission_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Hunting_Button.gif" width="140" height="45" alt=
"Hunting_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Fishing_Button.gif" width="140" height="45" alt=
"Fishing_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="45" align="center" valign="top"><img src=
"images/Homestay_Button.gif" width="140" height="45" alt=
"Homestay_Button.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" height="1" valign="top"><img src=
"images/Dk_Green_dot.gif" width="160" height="1" alt=
"Dk_Green_dot.gif (1K)" /> </td>
</tr>
<tr>
<td width="160" align="center" valign="top">insert contact info
here</td>
</tr>
</table>
I am using a new HTML Editor and it must have thrown those blasted spaces in when I 'TIDY'd
The fix worked and my website is happy again :)
[BTW I tried to post this 50 gazillion times and I was erroring out, sorry for the delated response]