File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Regarding Scrollable Table

prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 44
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" >
<table>
...
...
</table>
</div>

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
author
Rancher

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

Eric
prasad agarwal
Ranch Hand

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

Man, thank you soooo much; i got it working as how i wanted
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Scrollable Table
 
Similar Threads
Need help editing some css if possible (SOLVED)
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.
problem as menu show behind of flash~ pls help
Safari and IE issues.
problem in running a servlet