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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cell Height Problems

Status
Not open for further replies.

gpalmer711

IS-IT--Management
Joined
May 11, 2001
Messages
2,445
Location
GB
I am having a problem with setting cell heights on a template that I am trying to complete at the moment. The basic table code without content is shown below.

Code:
  <table border="1" cellspacing="1" width="802" id="AutoNumber1">
    <tr>
      <td width="100%" height="100" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td width="100%" height="30" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td width="175" height="75">&nbsp;</td>
      <td width="627" rowspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td width="175" height="250">&nbsp;</td>
    </tr>
    <tr>
      <td width="175">&nbsp;</td>
    </tr>
    <tr>
      <td width="100%" height="10" colspan="2"></td>
    </tr>
  </table>

Heres my problem, on the 3rd row I have 2 columns. The second column spans 3 rows. This works fine with no content in that column.

However if I add content to the second column of row 3 then the 3 rows that it spans do not keep their height sizes.

What I would like to happen is that row 1 and 2 of the spanned rows keep their heights, where as the 3rd row can grow in height.

I hope this makes sense, if not let me know and i'll try and explain better.


Greg Palmer
Free Software for Adminstrators
 
No problems in moz... IE doesn't like rowspans used that way.

Can you use valign="top" and divs/tables in a left column instead?
 
Thats a good idea actually, I hadn't thought about nesting another table in the left column.

Greg Palmer
Free Software for Adminstrators
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top