• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Table with Scrollbar

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please provide me with the HTML Code for

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


Thanks
 
Marshal
Posts: 67280
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are a lot of options out on the net. Search google for css scollable table.

eric
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!