table header columns and body columns aren't aligning properly to each other
See original GitHub issueI am facing this weird issue, when I load table data as mentioned columns are not in line with each other
basically my th style is
text-align: left; width: 0px; max-width: 0px;
which is not aligning with tr’s in tbody
when I resize window it aligns properly! now my th style is like this
text-align: left; width: 212px; max-width: 212px;
I am not giving any overriding css.please someone help me out.
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (10 by maintainers)
Top Results From Across the Web
Why are these HTML column headers misaligned?
I believe it's faster for large tables to be rendered with dynamic column widths, header/column alignment is then guaranteed, plus the code is ......
Read more >Header columns do not align to body columns when using ...
When using a Scroller and the table is being (re)drawn while hidden, then the columns of the header do not align with the...
Read more >Tables in HTML documents
Table cells may either contain "header" information (see the TH element) or "data" (see the TD element). Cells may span multiple rows and...
Read more >Advanced table settings: column width, alignment and ...
Mostly, tables should be left-aligned because we read left-to-right. However, tables of financial figures should have the columns with numerals ...
Read more >DataTables - header column width not aligned with body ...
// If table is in the tab, you need to adjust headers when tab becomes visible. // For example, for Bootstrap Tab plugin:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
use
width
and assign to it (100/ the number of column)%exampli gratia, i have 5 columns:
@AllenFang Im facing the same issue.Please revert back