D
D
Dubrovin2018-02-08 13:27:27
css
Dubrovin, 2018-02-08 13:27:27

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

1 answer(s)
F
farba4ka, 2018-02-08
@farba4ka

Not enough information you give, but look at the example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question