Data table with fixed table head and scrollable table body using CSS only


HOME ยป Web Design

There are many solutions to this, but I have few constraints to add up to this problem which makes it difficult to achieve.


I was working on this table with fixed header and scrollable body using only CSS (no javascript/jquery) and flexible column widths (so that the table gets resized on window resize). Also to make this compatible in all possible browsers including IE6.


The closest solution I could find was http://salzerdesign.com/test/fixedTable.html


But this too has a problem with centring the header text which also overflows (because of fixed height) when window is resized.


Is there a solution for this? P


Related to : Data table with fixed table head and scrollable table body using CSS only
Fixed Header, Scrollable Body. How to without Table?
Web Design

I wanted to implement a persistent header on my website where the body scrolls if need be. Kinda Like Facebook for example.


I see a lot of examples regarding tables so I wanted to find out if there's a way to do it without tables.


Auto resizing, scrollable body/table content - fixed footer
Web Design

I have recently came across a nasty issue in the design of a page. I want it to auto resize up to a minimum size. The width behaves as desired, yet the height seems to be unresponsive.


Basically, I would want the table to not expand beyond the fixed footer. As you can see in the preview attached, it currently goes down and down and down. Ideally, the height of the middle section would also resize such as the width of the document. I have tried achieving this, and getting the table to vertically-scroll when the minimum height is met, but to no avail.


Because I do not want to clutter the post with bits of HTML and CSS and even miss some important piec

how do I create an HTML table with fixed/frozen left column and scrollable body?
Web Design

How do I create an HTML table with fixed/frozen left column and scrollable body?


I need a simple solution. I know it's similar to some other questions, like:


HTML table with fixed headers and a fixed column?
http://stackoverflow.com/questions/296020/how-can-i-lock-the-first-row-and-first-column-of-a-table-when-scrolling-possibly


But I need just a single left column to be frozen and I would prefer a simple and script-less solution.


CSS: Table head looks smaller than table body
Web Design

I have a table divided into a table head and table body. In order to make the table look a little nicer, the table head has a 2 part background image that gives it rounded corners. The table head does NOT have a border.


The table body does have a border. Therefore, it appears to stick out a little bit beyond the table head on the right and the left.


I want to make the table head (without a border) the same size as the table body (with a border). Any ideas as to how to accomplish this?


The HTML:


<table id="outerTable">
<!-- No border -->
<!-- Smaller than tbody o
Data table with fixed table head and scrollable table body using CSS only
Web Design

There are many solutions to this, but I have few constraints to add up to this problem which makes it difficult to achieve.


I was working on this table with fixed header and scrollable body using only CSS (no javascript/jquery) and flexible column widths (so that the table gets resized on window resize). Also to make this compatible in all possible browsers including IE6.


The closest solution I could find was http://salzerdesign.com/test/fixedTable.html


But this too has a problem with centring the header text which also overflows (because of fixed height) when window is resized.


Is there a solution for this? P

table: resizable, fixed head, scrollable body
Web Design

For anyone looking for a table that is resizable, and has a fixed head, but a scrollable body, here's some code.
Of course, the whole problem should not exist if only browsers would accept the "overflow: auto" style in their tbody. But in IE this doesn't work (as for other browsers, I don't know).
The following code is a workaround. It requires that you specify the number of columns and a (relative) column width. Note that this is only a workaround and is not perfect. If you you resize the window too much (make it too small) the header will no longer be properly lined out with the body. That's because

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .