W
W
webe2018-10-01 19:52:11
css
webe, 2018-10-01 19:52:11

How to make a table on flexbox?

I look at all modern tables using flex-box in frameworks, tell me pliz, what is the algorithm for aligning all columns?
if you do flex:1 , then all the columns will be the same width, but how to make the column width fit the content?
is there a normal approach in 2018 to create a table with the ability to fix the header when scrolling?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2018-10-01
@webe

In what framework is the table crutched through flexes?
You can fix the cap through position: sticky;
Fix caps
Fix caps + columns

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question