Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html table header locked to the top of the page even when scrolling down

I've used both to_html() and style.render() of Pandas DataFrame to generate html page from CSV data. It's cool!

But when I scroll the page down I lose sight of the column names, that's the problem.

Is there some way of hanging it up on the top of the page?

like image 732
KcFnMi Avatar asked Jan 22 '26 17:01

KcFnMi


1 Answers

Is this what you need?

#NAME HERE{ 
position: fixed; 
{

You can also do the width ect with this code...

 #NAME HERE{ 
 position: fixed; 
 bottom:0px; 
 right: 0; 
 width: 0px; 
 height: 0px;
 }

Also, if you want the width to span across the page just change the 0px to 100% Also depending on what you want, change " fixed " to " absolute "

like image 129
Dove Man Avatar answered Jan 24 '26 07:01

Dove Man



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!