I have been scouring the internet but haven't found a solution yet. I am trying to make my flexbox grid rows compatible with iPhone 4, but I can't seem to make it work. The version of Safari on iOS4 does not support the new flexbox syntax, so I tried using a combination of old and new syntax based on suggestions from my research. However, this approach is not working for me:
.row-eq-height {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
I have a header with elements that I want to center, which I can achieve using flexbox:
<div class="row row-eq-height">
<div class="col-xs-12">
<button class="center-y">Some button</button>
</div>
</div>
Just to clarify, the center-y
class is not causing the issue. It is simply illustrating what I am aiming to accomplish.
If there is an error in my solution, please let me know. If not, is there a way to provide a fallback option to make it work?
I am testing on iPhone 4 using browserstack, so there could be a glitch in their service that I am unaware of.