Safari display flex not working when elements are 25%

Rasmus-E

We have an issue on iPads and Mac thats we really annoying.

We are using bootstrap, and have created 9 elements in a .row with .col-xs-12.col-sm-5.col-md-3 classes.

On the .row we have applied a .flex-start class with the following css:

.flex-start {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
}

In safari the first flex row only contains 3 items.

Sample here and screenshot here. you must open in safari on Mac or iPad

Setting the width of col-md-3 to 24.9% fixes this, but we dont want that hack.

Has anyone else experienced this issue, and know of a fix?

tibazi

I recently had the same issue. There is a problem with the pseudo :after and :before elements which comes with the row class.

I think omittig the row class is not the best solution. In my case i could fix it in safari with this css:

.row:before,
.row:after {
    display: none;
}

You might also have a look at this post:

Flexbox Safari bug (flex-wrap)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Display:Flex not supported in Safari?

From Dev

Error with display: flex on safari?

From Dev

Image is stretched on Safari with display flex

From Dev

Flex Wrap + TransformY not working in Safari

From Dev

display:flex not working in Chrome

From Dev

Display flex is not working in IE

From Dev

Button height with display flex is not uniform in Safari

From Dev

Display Flex not working on Firefox but Chrome

From Dev

flex-wrap not working as expected in Safari

From Dev

Display:flex not working when added into my css no matter what I try

From Dev

Display flex in Chrome with 100% height of child elements

From Dev

css: trouble positioning elements with display:flex

From Java

Flex / Grid layouts not working on button or fieldset elements

From Dev

div height:100% and display:flex not working in Chrome

From Dev

div height:100% and display:flex not working in Chrome

From Dev

GreenSock TimelineMax on path elements not working in Safari and Firefox

From Dev

Display:inline-block not working on safari

From Dev

display: flex; doesn't work on iPad (both Chrome and Safari)

From Dev

Flexbox still being spotty in Safari, flex-wrap not working

From Dev

Display: Flex loses right padding when overflowing?

From Dev

Safari inputs do not display text when typed into

From Dev

AJAX request not working when using HTTPS in Safari

From Dev

Is it possible to make all elements on the page a display: flex (flexbox)?

From Dev

CSS, JQuery - Flex elements do not appear after display: none;

From Dev

How to make several elements overlap using display flex

From Dev

Is it possible to make all elements on the page a display: flex (flexbox)?

From Dev

Why are these two elements vertically offset although display:flex is used?

From Dev

Issue with display:none when the container is set to display:flex

From Dev

Issue with display:none when the container is set to display:flex

Related Related

  1. 1

    Display:Flex not supported in Safari?

  2. 2

    Error with display: flex on safari?

  3. 3

    Image is stretched on Safari with display flex

  4. 4

    Flex Wrap + TransformY not working in Safari

  5. 5

    display:flex not working in Chrome

  6. 6

    Display flex is not working in IE

  7. 7

    Button height with display flex is not uniform in Safari

  8. 8

    Display Flex not working on Firefox but Chrome

  9. 9

    flex-wrap not working as expected in Safari

  10. 10

    Display:flex not working when added into my css no matter what I try

  11. 11

    Display flex in Chrome with 100% height of child elements

  12. 12

    css: trouble positioning elements with display:flex

  13. 13

    Flex / Grid layouts not working on button or fieldset elements

  14. 14

    div height:100% and display:flex not working in Chrome

  15. 15

    div height:100% and display:flex not working in Chrome

  16. 16

    GreenSock TimelineMax on path elements not working in Safari and Firefox

  17. 17

    Display:inline-block not working on safari

  18. 18

    display: flex; doesn't work on iPad (both Chrome and Safari)

  19. 19

    Flexbox still being spotty in Safari, flex-wrap not working

  20. 20

    Display: Flex loses right padding when overflowing?

  21. 21

    Safari inputs do not display text when typed into

  22. 22

    AJAX request not working when using HTTPS in Safari

  23. 23

    Is it possible to make all elements on the page a display: flex (flexbox)?

  24. 24

    CSS, JQuery - Flex elements do not appear after display: none;

  25. 25

    How to make several elements overlap using display flex

  26. 26

    Is it possible to make all elements on the page a display: flex (flexbox)?

  27. 27

    Why are these two elements vertically offset although display:flex is used?

  28. 28

    Issue with display:none when the container is set to display:flex

  29. 29

    Issue with display:none when the container is set to display:flex

HotTag

Archive