D
D
dikxarper2020-04-15 09:37:40
css
dikxarper, 2020-04-15 09:37:40

Why do 3 elements with css property flex-wrap wrap to a new line?

There are six elements that have a width of 33.33333%. I set display: flex and flex-wrap: wrap, but instead of laying out 3 elements in a row, only 2 elements come out in one line, and the rest are wrapped. Maybe something is wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2020-04-15
@dikxarper

*, ::after, ::before {
    box-sizing: border-box;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question