aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Table with Scrollbar 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 "Table with Scrollbar" Watch "Table with Scrollbar" New topic
Author

Table with Scrollbar

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
Could you please provide me with the HTML Code for

a Table with Header fixed, having both horizontal and vertical scrollbar.


Thanks


$Hi/\bEr
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Shiaber Shaam wrote:Could you please provide me with the HTML Code for ...

With 190 posts you should know by now that that's not the way that the Ranch works. Post your code and let us know what problems you are having with it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
I regret for that.


for horizontal.

and
for vertical

to use the vertical scroll bar, i have to scroll my horizontal scrollbar to the end.

i dont want like that and i dont know how to fix this.


thanks


Zaeed McColin
Ranch Hand

Joined: Jan 13, 2009
Posts: 90
try this(my solution)



as you see, create a different table for only show header and another table in a div for rows
and about setRowClass() method
it was just an additional part to set .odd class for odd rows and .even for even rows
it works good but maybe not standard

NOTE:: in both tables set width value, maybe if you add a large text in one of the row in infoSec, the look of your page will change
such as


you can do it with a JS function like setRowClass() method, because you have a lot of rows and it's hard to set manually


Open source
Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
To use the vertical scroll bar, i have to scroll my horizontal scrollbar to the end.

I don't want like that .

Could you please help me.


Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
there are a lot of options out on the net. Search google for css scollable table.

eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Table with Scrollbar