Problem with table

Discussion in 'HTML & Website Design' started by chaosweapon, Jul 10, 2008.

  1. #1
    I have a table with the following structure:
    <table>
    	<tr>
    		<td rowspan="2" height="500" id="cell1">&nbsp;</td>
    		<td height="200" id="cell2">&nbsp;</td>
    	</tr>
    	<tr>
    		<td id="cell3">&nbsp;</td>
    	</tr>
    </table>
    Code (markup):
    The problem is that whenever the height of cell1 varies, the other 2 cells are both affected when only one should be ie cell2. This problem only occurs with IE. FF displays the table correctly.

    Is there any way (in IE) how I can vary the height of cell1 without affecting the height of cell3?
     
    chaosweapon, Jul 10, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Not sure I understand - why not just specify the height of cell3 height="300"?
     
    itcn, Jul 10, 2008 IP
  3. rebelagent

    rebelagent Well-Known Member

    Messages:
    876
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    165
    #3
    IE wants you to probably make a new table. I'd try maybe doing this with div tags it might work better in every browser...

    So it would go

     
    rebelagent, Jul 10, 2008 IP
  4. gpcgy

    gpcgy Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh, too complecated, it's better to use div+css
     
    gpcgy, Jul 10, 2008 IP
  5. ctyler

    ctyler Guest

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think the problem is you have the cell height of cell 2. Take the height off of it and leave cell three height at what ever you want. If that doesn't solve the problem, let me know.
     
    ctyler, Jul 10, 2008 IP
  6. mfawn

    mfawn Active Member

    Messages:
    573
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Yes tables can be a little buggy when you are dealing with cell heights. The best way is to set the row heights if you want to keep them the same.
     
    mfawn, Jul 10, 2008 IP