A
A
Andrew M2017-02-11 18:49:44
css
Andrew M, 2017-02-11 18:49:44

How to make flex grid items stretch horizontally based on content?

QynOLsxnPnFYQPfWgOg04xebVhY9TI.pngfLQZMrjoZMueVEK2Iv4m4P7lHO8vDC.pngBGFod7MFWnz1dNFqFnuVHdYcY9m8ed.png
It is necessary to make stretch as if columnar depending on the column, but I don’t understand how to implement this in flex
Is it possible to do this only on table?
PS: Creating columns for elements is not a solution, the task is to make blocks with such a stretch that go in the same parent one after another
. Thank you very much!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mike, 2017-02-11
@niceque

Still in drafts.
https://drafts.csswg.org/css-flexbox-1/#propdef-fl...

D
dom1n1k, 2017-02-11
@dom1n1k

I'm afraid that on the flex - no way. Either scripts, or grids, or (horror) a table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question