470,631 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

Table Scrolling Problem

Hi,

I have a table which I need to display within a div of a fixed width. The
length of the table exceeds the width of the div which is ok as I can make
the div scrollable. The problem that I have is that the cells in the table
must be a fixed with because they need to co-incide with another table which
is going to be in another scrolling div below.

The problem is if I restrict the with of the containing div to something
less than the with of the table. The table then attempts to crunch the
table width to the least width and thus reduces the table cell widths and
ignores the fixes widht size applied tot he style.

How can I get around this.
Dec 14 '07 #1
2 1352
the simple solution would be to
1. create transparent.gif with size 1x1 pixel
2. To the headers of columns add <img src="transparent.gif" width=100
height=1>

This will keep your columns to be at least 100 pixels.

PS: There might be easier solutions with CSS. Mine is just a suggestion and
will work with any browser.

George.
"A Question" <q@qs.comwrote in message
news:eK**************@TK2MSFTNGP05.phx.gbl...
Hi,

I have a table which I need to display within a div of a fixed width. The
length of the table exceeds the width of the div which is ok as I can
make the div scrollable. The problem that I have is that the cells in the
table must be a fixed with because they need to co-incide with another
table which is going to be in another scrolling div below.

The problem is if I restrict the with of the containing div to something
less than the with of the table. The table then attempts to crunch the
table width to the least width and thus reduces the table cell widths and
ignores the fixes widht size applied tot he style.

How can I get around this.


Dec 14 '07 #2
Hi, yes, its a possibility. I have also found that fixing the width of the
table acheives the same thing. Thanks for your help.
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:ux*************@TK2MSFTNGP02.phx.gbl...
the simple solution would be to
1. create transparent.gif with size 1x1 pixel
2. To the headers of columns add <img src="transparent.gif" width=100
height=1>

This will keep your columns to be at least 100 pixels.

PS: There might be easier solutions with CSS. Mine is just a suggestion
and will work with any browser.

George.
"A Question" <q@qs.comwrote in message
news:eK**************@TK2MSFTNGP05.phx.gbl...
>Hi,

I have a table which I need to display within a div of a fixed width. The
length of the table exceeds the width of the div which is ok as I can
make the div scrollable. The problem that I have is that the cells in the
table must be a fixed with because they need to co-incide with another
table which is going to be in another scrolling div below.

The problem is if I restrict the with of the containing div to something
less than the with of the table. The table then attempts to crunch the
table width to the least width and thus reduces the table cell widths and
ignores the fixes widht size applied tot he style.

How can I get around this.



Dec 15 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Simon Wigzell | last post: by
157 posts views Thread by Dennis | last post: by
2 posts views Thread by Jure Erznoznik | last post: by
8 posts views Thread by Dave Cook | last post: by
7 posts views Thread by Shawn B. | last post: by
3 posts views Thread by Cruelemort | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.