PDA

View Full Version : td... height property



Lelouch
17 Sep 2007, 02:42 PM
I am using this code in my page

<body>


<table>

<tr><td colspan="5">Header</td></tr>

<tr>

<td rowspan="2">Left Panel<br />lp1<br />lp2<br />lp3</td>

<td>Top panel1</td>
<td>Top panel2</td>
<td>Top panel3</td>
<td>Top panel4</td>


</tr>

<tr>

<td>Main contents</td>

</tr>


</table>


</body>


Where is the problem??

The problem is that when i set (Top panel#) height into a specific value, and the main contents section contains one or two lines only (left panel is longer), the height value doesnt work... why is that??

thanks

alvo
17 Sep 2007, 02:57 PM
That's just how tables work. Specifying heights and widths don't lock tables or cells to those sizes. The only way to create an absolute minimum measurement is to put an image in the cell, usually a single pixel transparent GIF image is used. If you don't have an empty cell in the row to put a pixel with the specified height, you'll have to add one at one end of the row.