Answer the question
In order to leave comments, you need to log in
Why doesn't flex wrap work on iOS?
Hello.
There are several rows of cards (3 cards in each row) and, depending on the size of the browser window, the rows are narrowed with flex-wrap: wrap
and min-width
, and the cards in a row becomes 2 or 1. However, it flex-wrap: wrap
refuses to work on iOS devices (in particular, on the iPad, regardless of browser) and the result is all the cards in one column instead of whole rows of 2 cards.
When I use flex-wrap: nowrap
it, everything is displayed properly (that is, flexbox works, but this method does not suit me).
It would seem that I have already registered all the prefixes, but the result is still unsatisfactory. How to solve the problem?
An example for clarity on JSfiddle .
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
flex-flow: row wrap;
justify-content: space-between;
-webkit-flex-wrap: wrap;
-moz-flex-wrap: wrap;
-ms-flex-wrap: wrap;
-o-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
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