Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Table with Fixed header, Resizable Columns and can size to less than the content width [closed]

I'd like to include a table in my web application thing that has a fixed, styled, header AND resizable columns AND to be able to resize the columns (both by when the browser is resized as the table is 100% and by the user resizing the columns) to less than the content and the content get truncated (hidden).

Also somehow I'd like the body of the table (not the header) to scroll if it can't all fit.

At the moment, I don't care if it doesn't work in every browser, I just need it to work in a webkit-based browser.

I've tried lots of different combinations, including tons of jQuery plugins, displaying the header bits as display:block and then using jQuery resize, and even the CSS3 resize value, all not providing all these features I need.

Does anyone know of something that supports this, or has code to make this happen?

like image 560
Adam M-W Avatar asked Dec 03 '25 05:12

Adam M-W


1 Answers

You can use this jQuery plugin: https://github.com/benjaminleouzon/tablefixedheader

It's the only plugin of "fixed header table" without width fixing and without body resizing observers!

You can easy customize the table with theme files.

Disclaimer: I am the author of the plugin.

like image 122
bln Avatar answered Dec 04 '25 18:12

bln



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!