• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 67749
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic