-
I would like to control the table component column widths. How best can this be done? |
Beta Was this translation helpful? Give feedback.
Answered by
lovasoa
Aug 29, 2024
Replies: 1 comment 1 reply
-
Hello ! You can use css for that: select 'shell' as component, 'custom_table_width.css' as css;
select 'table' as component, 'my_table' as id;
select * from my_table; and in #my_table th:nth-child(1),
#my_table td:nth-child(1) {
width: 90%; /* adjust percentage as needed */
}
#my_table th:nth-child(2),
#my_table td:nth-child(2) {
width: 10%;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lozdown
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello !
You can use css for that:
and in
custom_table_width.css
: