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


boonchew
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
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

Fixed table head - scrollable table body
Web Design

Hmmm,
I have a long table which doesnt fit on the screen without scrolling.
No problem, but when I scroll down the table-head and thus the discription of the table-cells is not visible anymore.
Is it possible to fix the table-head and scroll t5he table-body?
Thanks for every idea,
Jerome
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
Displaying a scrollable table with fixed head?
Web Design


Im trying to do something seemingly very simple, but its brought me
close to crushing my head on the keyboard. All I want is a table where
the head row is fixed and the body columns below are scrollable (with
the ordinary scrollbars, no less). Whatever I try, the columns in the
head and the body arent aligned; the widths are computed independently
which gives a completely ragged look.
Michael
--
Michael Schuerig They tell you that the darkness
mailto:michael@schuerig.de Is a blessing in disguise
http://www.schuerig.de/michael/ --Janis Ian, From Me To You



HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .