Answer the question
In order to leave comments, you need to log in
Are the blocks the same width?
Let's say I have 2 buttons. One is 12px wide. The other one has 24. I need the width of the first button to be also 24. That is, all elements are stretched to fit the largest one. How to implement this?
Answer the question
In order to leave comments, you need to log in
Parent - display: flex. Buttons - flex: 1
https://jsfiddle.net/19zL1pey/1/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question