It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Regarding Scrollable Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Regarding Scrollable Table" Watch "Regarding Scrollable Table" New topic

Regarding Scrollable Table

prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 67
Hi all,

I believe you guys can help me out with an idea on achieving what i want

Ok i have a Scrollable Table, achieved using the following CSS code:

And in the JSP, to have a scrollable Table i will have something like..

<div class="tableContainer" >

I am ok with CSS but not an expert, Is there a way like say if there are 200 rows in table,
I can have the scroll bar some where positioned at 100th row or something like that,...
I mean using CSS, move the scroll bar ?? Can that be done?

Presently when the page loads The table displays from the top rows as expected.. can i have the scrollbar positioned anywhere i want ?

Thanks a lot, I appreciate
[ October 31, 2008: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Well you probably would have to set the scrollTop with JavaScript when the page loads.

prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 67
Hi Eric,

Man, thank you soooo much; i got it working as how i wanted
I agree. Here's the link:
subject: Regarding Scrollable Table
jQuery in Action, 3rd edition