Answer the question
In order to leave comments, you need to log in
How can I undo the stretching of a FLEXBOX child element?
Friends, there is a flexbox block, it has two nested elements, one is a button and the other is with content. They are both stretched to the full width of the parent. QUESTION. How to stop stretching to the full width of a button?
I don't want to give it a fixed width. It has its own content text, it should stretch along it.
https://codepen.io/Cheizer/pen/wLZQLy
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question