Answer the question
In order to leave comments, you need to log in
How to add a gap between elements inside a block with display flex?
Let's say there is a div with display:flex (in my case it is a button with text and an icon inside)
Is it possible somehow through the div properties, without referring to the text and icon elements, to set the distance (gap) between the text and the icon, as for example, done via display: grid + grid-gap.
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