M
M
Minusator2020-04-28 09:34:28
css
Minusator, 2020-04-28 09:34:28

How to lay out such blocks on flex?

Good afternoon!

How to lay out blocks so that, regardless of the number, they are the same in height and the buttons inside always have the same indentation?

Interested in a solution on flex

5ea7cc902c824436676363.png

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
approximate solution, 2020-04-28
@Minusator

https://codepen.io/approximate_solution2k20/pen/rNOwwzo
In short, use flex-growfor wrapping text, responsible for the "greed" of the element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question