[jQuery] Re: keeping table header fix

2009-10-13 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300px so when I scroll down I'd like to always see the

[jQuery] Re: keeping table header fix

2009-10-13 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300px so when I scroll down I'd like to always see the

[jQuery] Re: keeping table header fix

2009-10-05 Thread Kevin Dalman
I create a lot of web-application list-screens with fixed-headers. I prefer to *not* work with a THEAD for this purpose because it is too limiting for complex page layouts. Instead, I create TWO tables - one for the headers and one for the content. This works well as long as you use

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I am trying to do the same thing, but I'm debugging something else and I haven't succeeded yet. My approach has

[jQuery] Re: keeping table header fix

2009-10-02 Thread Matt Zagrabelny
On Thu, 2009-10-01 at 22:25 -0400, Karl Swedberg wrote: have you tried overflow-y: auto; ? This works... (to some degree) table tbody { height: 799px; overflow-y: auto; overflow-x: hidden; } Cheers, -- Matt Zagrabelny - mzagr...@d.umn.edu - (218) 726 8844 University of Minnesota

[jQuery] Re: keeping table header fix

2009-10-02 Thread Jack Killpatrick
Hmm, I gave this a try. Setting height stretches the table rows out vertically if there are less records than the height. I tried putting a fixed height div around the table and not setting a height on the tbody, but then the tbody overflow-y never kicks in. Hmm. Also, if I set the height of

[jQuery] Re: keeping table header fix

2009-10-02 Thread Karl Swedberg
On Oct 2, 2009, at 12:11 PM, Jack Killpatrick wrote: Hmm, I gave this a try. Setting height stretches the table rows out vertically if there are less records than the height. I tried putting a fixed height div around the table and not setting a height on the tbody, but then the tbody

[jQuery] Re: keeping table header fix

2009-10-02 Thread lcplben
On Sep 16, 2:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300px so when I scroll down I'd like to always see the

[jQuery] Re: keeping table header fix

2009-10-01 Thread Jack Killpatrick
bump... anyone know? If there's no nice css way, maybe a jquery way? Would be nice if overflow:auto had an overflow:horizontal/vertical option, I think. Thx, Jack Jack Killpatrick wrote: That's a neat trick I haven't tried before. Is there an easy way to deal with (as in hide/remove) the

[jQuery] Re: keeping table header fix

2009-10-01 Thread Karl Swedberg
have you tried overflow-y: auto; ? more information: https://developer.mozilla.org/en/CSS/overflow-x --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 8:25 PM, Jack Killpatrick wrote: bump... anyone know? If there's no nice css way, maybe a

[jQuery] Re: keeping table header fix

2009-09-30 Thread Matt
On Sep 16, 7:55 pm, Macsig sigbac...@gmail.com wrote: Yes, I do but I don't see how that can help me out. Thanks On Sep 16, 4:01 am, Liam Byrne l...@onsight.ie wrote: do you actually have the headers in a thead, with the content in tbody ? Most people forget about those. L macsig

[jQuery] Re: keeping table header fix

2009-09-30 Thread Jack Killpatrick
That's a neat trick I haven't tried before. Is there an easy way to deal with (as in hide/remove) the horizontal scrollbar that also appears? Does that work across browser? I've just tried FF so far. Thx, Jack Matt wrote: On Sep 16, 7:55 pm, Macsig sigbac...@gmail.com wrote: Yes, I do

[jQuery] Re: keeping table header fix

2009-09-16 Thread Liam Byrne
do you actually have the headers in a thead, with the content in tbody ? Most people forget about those. L macsig wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is

[jQuery] Re: keeping table header fix

2009-09-16 Thread Macsig
Yes, I do but I don't see how that can help me out. Thanks On Sep 16, 4:01 am, Liam Byrne l...@onsight.ie wrote: do you actually have the headers in a thead, with the content in tbody ? Most people forget about those. L macsig wrote: Hello guys, I'd like to know if there is a way