Skip to content

Control of column widths on tables #558

Answered by lovasoa
lozdown asked this question in Q&A
Discussion options

You must be logged in to vote

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 custom_table_width.css:

#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%;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Answer selected by lozdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants