Click to See Complete Forum and Search --> : Controling a row height in a row-spanned tables


tuka
01-31-2007, 12:06 PM
Hi all,

I have a 3x3 rowspanned table and I am having a difficult time controlling the height of the first row where the 1st cell (r1c1) is part of the rowpanned cell.

The rowspan covers r1c1-r2c1.

I have tried playing with the height parameter of the td, the tr tags (icluding using the styles) to no effect. I am using ie7 and Firefox.

Any tip on how to workaround this ?

TIA
Tuka

I have included the html script below (I left the height parameters for calrity on my intention).


<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" height="10" rowspan="2"><img src="myaccount.jpg" width="100" height="100" /></td>
<td width="47%" height="10" style="height:5px">row 1</td>
<td width="33%" height="10">row 1</td>
</tr>
<tr>
<td height="23">row 2</td>
<td>row 2</td>
</tr>
<tr>
<td>row 3</td>
<td>row 3</td>
<td>row 3</td>
</tr>
</table>

gil davis
01-31-2007, 12:43 PM
Apply the height to the <TR>.

tuka
02-01-2007, 10:58 AM
Hi,

I already have. The following:

style="height:1px" height="1px"

placed in the <TR> tags have no effect. I use both a style parameter and a height parameter.

Tuka

gil davis
02-01-2007, 02:28 PM
Tables will look at "height" and "width" as suggestions. If the browser sees content that requires more space, it will completely ignore your request. You can usually get what you want by specifying larger numbers, but never smaller ones.

You have border=1 in the <TABLE> tag so I think the <TR> will be at least 2px tall even with no "content".