Set table width of columns individually
See original GitHub issueI’m familiar with these two options in the API:
table.setFixedWidthLayout();
table.setWidth(WidthType.PERCENTAGE, '100%');
However, what should I do if I want to set the width of specific columns?
Example: I want a table with two columns; the first one to have a width of 25% and the second one to have a width of 75%.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Set the table column width constant regardless of the amount ...
You need to set the cell width (either th or td worked, I set both) AND set the table-layout to fixed . For...
Read more >Changing Column Width - The complete HTML5 tutorial
In order to do this, we use the <col> element. This element is to be placed between the <table> tag and the <thead>...
Read more >Resize a table, column, or row - Microsoft Support
To change the width to a specific measurement, click a cell in the column that you want to resize. On the Layout tab,...
Read more >table-layout - CSS: Cascading Style Sheets - MDN Web Docs
Table and column widths are set by the widths of table and col elements or by the width of the first row of...
Read more >columns.width - DataTables
Column width in tables depends upon many properties such as cell borders, table borders, the border-collapse property, the content of the table and...
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 FreeTop 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
Top GitHub Comments
Unfortunately not
I am still active don’t worry.
Just been spending my time on another open source project at the moment
Trying to learn graph theory and implementing it.
I will be on
docx
next week after this graph piece is done!Have you gotten any further on this issue?