Exactly like the title says. There are hundreds of posts around with this question and all answers are forcing me to use fix width, but that's not the real world.
I want my td
to use %
and still have tbody
scrollable.
I want what Isaac Betesh asked in a comment on an answer to this question "How to apply vertical scrollbar for TBODY":
This example has exact pixel width for each td and th. Is there a way to use % widths instead of px and accomplish the same?
Edit: Don't want to include dozens of examples, because they're all over Stack Overflow, but this is the classic one: JSFiddle.
If you just change the content in thead
like this: JSFiddle, it all gets out of sync between thead
and tbody
.
The solution
display:block;
doesn't work.