Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Someone suggest a solution for my task...

I created a table in a HTML page with vertical scrollbar(scroll bar for page, not for table).

Task is if I drag scroll bar down, table should also drag along with a scroll bar.

What i tried so far is...
In css file i marked the table position as fixed, It is working fine but while using many rows, bottom rows are hidden in the table, I can't minimize the table size also.
HTML
#Table
{
  position:fixed;
}





Thanks in Advance.....
R.Karthik
Posted
Updated 22-Jan-15 0:25am

1 solution

By setting
position:fixed;
will not suffice your need. It will fix the position to fixed points. You need to write some scripts to make it sticky on scroll or you can use any third party plugins to achieve the same.

There are lot of plugins available to make sticky elements.
For example you can refer below plugins:

StickyJS
StickyMojo/
Using CSS and jQuery
Lists of Sticky Scroll Plugins

There are plenty of the plugins available that you can use to achieve your requirement.

Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900