• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Table with Scrollbar

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67642
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
there are a lot of options out on the net. Search google for css scollable table.

eric
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic