Forum Moderators: open

Message Too Old, No Replies

scrolling tables using div tag

         

mai_solu

6:21 am on Apr 8, 2003 (gmt 0)

10+ Year Member



hi!
i want to scroll my table using <DIV> tag. i'm generating table columns dynamically using DOM.

i have a fixed width for each column. whenever i insert a new column, columns width adjusted automatically according to the table width.

so anyone tell me how to fix the column width, so that it is not adjusted, whenever we insert a new column.

ur urgent reply is highly appreciated.
with best regards
Ather

tedster

6:34 pm on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, mai_solu.

Not sure I'm visualizing your situation properly - let me know if I sound crazy.

If you want to add a new column of table cells without adjusting the width of the other columns, then you need not to have any width constraints on the table.

If the table is inside a div, then that div may be acting as a constraint if your table is set to width=100%. Since you're willing to have the div scroll, there should be no issue with giving each cell a fixed pixel width, but no overall width for the table.

[edited by: tedster at 7:54 am (utc) on April 9, 2003]

mai_solu

6:20 am on Apr 9, 2003 (gmt 0)

10+ Year Member



thanks! my honour to be part of this cool group.

well u are on the right track.

i was trying to make a fixed columns or u can say gaps b/w column should be fixed. without using cellspacing. bcz it work on both horizontally and vertically.

so what i have done is that i have fixed the data length of each cell. what i will achieve by doing this is that my column length will be constant.

if u have any cool solution other then that, do let me know.

thanks for the reply.
with best regards
Ather Idrees