jihanemo — 2010-09-05T17:46:47-04:00 — #1
Page in question may be viewed here.
What is it that's setting the height of the "proddescript" cell? ("proddescript" cell contains the product name, price, and description). I haven't specified a height for that cell, yet it is about 300px high. I think it has something to do with that css pop-up image code in the "prodimage" cell to the right. The height of the "proddescript" cell seems to be lining up with the "prodimage" cell somehow.
I don't want the "proddescript" cell to have a specified height. How do I fix that?
jihanemo — 2010-09-06T12:10:37-04:00 — #2
paulob — 2010-09-06T12:26:50-04:00 — #3
You split the cell with rowspan so the two cells on the right will stretch out to match the height of the one cell on the left. If you just used two cells and didn't split them then the content would stay at the top of the cell.
Table cells are always equal in height and if you split one with rowspan the other two cells will still maintain this height (and vice versa).
ralphm — 2010-09-05T20:15:19-04:00 — #4
Tables are tricky things, and there's no good reason to use one there. Use floated divs instead, and you won't have this problem. Divs are much easier to use. Make #content overflow:hidden, and place two divs around 292px wide, one floated right and one floated left.
jihanemo — 2010-09-06T12:48:59-04:00 — #5
Gotcha. So what I did was set a specific height for the proddescript cell. That helps.