S
S
sokira2016-01-11 01:41:35
css
sokira, 2016-01-11 01:41:35

How to create a table with multiple fixed width columns and one floating width column?

Problem essence: there is a table with several columns. The contents of the first of them in each line can be of different lengths ( the address is displayed there ). The rest of the columns have the same width content ( numbers of the same bit depth or icons ).
Fixed-width columns need to be set to the minimum possible width to display content. This is necessary so that all the remaining free space in the table goes to the column with the address.
As a rule, now its contents are displayed in 2-3 lines, and the contents of all other columns fit into one line.
To display the table and work with it, the plugin https://www.datatables.net/ is currently used.
There is a suspicion that this problem has already been solved before me.
It needs to work correctly on mobile devices as well.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gassmonkey, 2016-01-11
@gassmonkey

Set the width via :nth-of-type() for the desired column. What is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question