Table contents spreading out

They have: 19 posts

Joined: Mar 2003

I have a table with 3 columns, and several rows. The data in the columns is dynamically generated so I can't control the length.

The problem I'm having, is that if the right column has more data than the middle column, the data in the middle column spreads out to compensate for the right hand column.

Can someone give me some direction on how I can stop this text from spreading out vertically?

Here's a link to one that spreads out that I don't like.

http://www.devmanagers.com/modules.php?op=modload&name=Amazon&file=index2&asin=0471052906

Here's an example of one that doesn't have too much data and it appears the way I want.

http://www.devmanagers.com/modules.php?op=modload&name=Amazon&file=index2&asin=1576108724

Thanks for the help!

Busy's picture

He has: 6,151 posts

Joined: May 2001

make the left and right columns fixed width and 100% in the center one
both pages look fine in IE5 at 800x600

They have: 19 posts

Joined: Mar 2003

Odd. This issue is the center cell which contains the book details, like price, name, author, etc.. is spreading out vertically, not horizontally. And it's only spreading out vertically when the right column extends lower.

I want the lower cell that contains the comments to extend, but I don't want any of the text to spread out.

This was in IE6, and Mozilla on Linux.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Vertical is up and down, horizontal is side to side.

Do you mean that the content is sliding down so it's not at the top? Then valign="top" or vertical-align: top; (HTML or CSS, respectively) for that middle cell.

I can't get your pages to load, so pardon any redundancies in the advice.

They have: 19 posts

Joined: Mar 2003

Yes, it was a problem with vertical. The issue wasn't with valign - top, as the first item was top aligned, but it was resizing to compensate with the right column.

I ended up solving it by throwing the table away and instead of using rowspan, I just nested simple tables with in each other. It works the way I want it to now.

But it worries me that you weren't able to load the page. Were you getting an error? or taking to long? or something else?

I haven't had any issue in loading the pages from any locations. If you could elaborate, I'd appreciate it as you have me concerned.

If it was a long time in loading, it could have been that Amazon's web service was down. But it should show a friendly error instead after about 15 seconds or so.

Thanks

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

N7, OSX -- very long load. I'm on DSL, so a 10-15 second load is too long for me to wait around for. Regardless, it was over a minute the other day and I quit it after I finished posting -- easily over a minute.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.