Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with table cell heights in IE

Status
Not open for further replies.

dakota81

Technical User
May 15, 2001
1,691
0
0
US
Here's a broken down example:

Mozilla renders that page the way I want it, but IE does not.

The right cell is going to be filled in dynamically and can be short or tall depending on the data.

What I want is the upper-left cell to remain at a fixed height.
 
I always think of a solution the moment I post here - I just re-arrange the table structure so that the upper-left cell is not of the same table as the right cell.
 
Hi,

I would do this:

<table border="1" cellpadding="0" cellspacing="0" width="200">
<tr>
<td style="height:30px; width:100px; background: #FF0000;">short</td>
<td rowspan="2" bgcolor="blue" width="100"><div style="width:80px;height:150px;">tall</div></td>
</tr>
<tr>
<td bgcolor="green">tall</td>
</tr>

</table>

So try to use CSS.

tank you,

best regards,
Lord_Garfield
 
Since I didn't need the borders in the webpage I was rewriting, I just rearranged the table like below. Because even the example you suggest still does not work like desired in Internet Explorer.

Code:
<table>
 <tr>
  <td>
   <table>
    <tr>
     <td height="30" bgcolor="red">Short</td>
    </tr><tr>
     <td bgcolor="green">tall</td>
    </tr>
   </table>
  </td>
  <td bgcolor="blue">Tall</td>
 </tr>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top