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 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 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 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 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 header on top.
I already use for the tabletablesorterso the solution must be
compatible with that plug-in.

Thanks and have a nice day!

Sig
------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG -www.avg.com
Version: 8.5.409 / Virus Database: 270.13.100/2375 - Release Date: 09/16/09 05:51:00



Because then you can add this to your CSS:

table.tablesorter tbody {
    height: 250px;
    overflow: auto;
}






Reply via email to