Linked Questions
36 questions linked to/from Freeze the top row for an html table only (Fixed Table Header Scrolling)
6 votes
7 answers
19k views
How to make fixed header table with table and cell width in percents in CSS? [duplicate]
I have found the following solution for fixed header table: table { width: 450px; border-collapse: collapse; } thead { display: block; width: 450px; overflow: auto; color: #...
2 votes
2 answers
22k views
Fixed first row in a table [duplicate]
I have a website that is created by a software. On the page I have a table like this: <table> <tbody> <tr id="header"> <th>Header1 <th&...
2706 votes
44 answers
2.8m views
How to make a div 100% height of the browser window
I have a layout with two columns - a left div and a right div. The right div has a grey background-color, and I need it to expand vertically depending on the height of the user's browser window. Right ...
317 votes
16 answers
190k views
Border style do not work with sticky position element
I don't know why my border style do not work with position: sticky; attribute. I would like to set border styles on my sticky table header. But I don't want to use the transparent background colour. ...
254 votes
16 answers
501k views
How to set tbody height with overflow scroll
I am facing problem while setting tbody height width overflow scroll. <style> tbody{ height:50px;display:block;overflow:scroll } </style> <h3>Table B&...
95 votes
11 answers
231k views
How to stick table header(thead) on top while scrolling down the table rows with fixed header(navbar) in bootstrap 3?
Bootstrap layout with fixed-navbar. Having table with so many rows in body. Issue? As i scroll the page navigation-bar will be there because it is fixed. as i scroll more i want table header to be ...
18 votes
3 answers
82k views
Freezing/Fixing the Top Header Row of a table
I need your help. I am unsure as to how to freeze or have the top row of my table, which contains the headers to remain frozen, while I would be able to scroll through the table? Using only CSS markup ...
8 votes
5 answers
34k views
How to freeze header row in HTML table?
I am using an HTML table and have applied vertical scroll to it and now I want to freeze the header row during scrolling. How can I do this?
4 votes
1 answer
15k views
how to freeze table header using javascript
I have table with 200 rows. The first row has headings(th tag). While i am scrolling down the heading is to be fixed and visible to all rows. Any help? Thank You
4 votes
2 answers
3k views
Fixed header scrolling table with multiple tbody elements
I'm having trouble achieving a fixed header scroll-able table which contains multiple tbody elements. Basically, I'd like to put a table inside a container element of fixed size. I'd then like to ...
2 votes
3 answers
2k views
Render partial google spreadsheet on web app google apps script
I've intended make google spread sheet as a shared web site using freezed row. because on a shared web site, I couldn't fix columns and rows at all. finally I noticed It may be possible to make ...
0 votes
2 answers
3k views
align table header in one table to body in another table
I have two html tables. The first table is for the header and the second table is for the body. The reason for having two separate table is to be able to have a fixed header and a scrollable body. ...
1 vote
0 answers
2k views
Freeze header row and column in scrollable div
I'm trying to freeze both the row and column header of a table which is inside of a fixed-size div scrollable div (overflow: auto). You can see an example of the table/div setup here I've seen some ...
4 votes
0 answers
2k views
How to freeze the first row of html table using CSS and jQuery (without using any plugin) & width for <th> is dynamic that is not fixed [duplicate]
<html> <head> <style> .divclass { border: 1px solid #5e87b0; border-radius: 3px; display: none; float: right; overflow-x: hidden; overflow-y: auto; ...
1 vote
1 answer
934 views
how i can fix a table header when scroll
My table thead have 2 tr with diferents colspan and rowspan like this following picture: <table id="header-fixed"> <thead> <tr id="tr1" role="row" style=...