S
S
Svyatoslav Khusamov2018-07-27 22:43:11
HTML
Svyatoslav Khusamov, 2018-07-27 22:43:11

How to make the width of blocks in a flexbox container independent of the content?

The width of the boxes in a flexbox container depends on the width of the content of those boxes.
How can I make the width of the blocks be independent of the content?
To keep the width the same as when there is no content.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inkShio, 2018-07-27
@khusamov

flex-basis: 100px
or
flex: 0 0 100px;
mb right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question