html - Flex box row wrap not working in safari. Tried multiple prefixes? -


my flex box working great in chrome , not safari , firefox. i've tried lot of different prefixes webkit. doesn't work :(

do need flex-items? or there's wrong flex-container?

just noticed there different behavior depending on if " -webkit-flex-flow: row wrap; " commented out or not. although, not right behavior either way. when not commented, there's verticle column way on left. , when commented, row right next each other across top of page

also noticed when "display: -webkit-box;" in there, no matter if webkit-flex-flow commented or not, display shows things next each other in list. if not there, when webkit-flex-flow there, there's vertical column. , when commented, there row column.

.flex-container {    padding: 0;    margin: 0;    list-style: none;        /*display: -webkit-box;*/    display: -moz-box;    display: -ms-flexbox;    display: -webkit-flex;    display: flex;        flex-flow: row wrap;    /*-webkit-box-flex-flow: row wrap;*/    -webkit-flex-flow: row wrap;    -ms-flex-flow: row wrap;      justify-content: space-around;  }    .flex-item {      padding: 0px;    min-height: 150px;    min-width: 150px;    max-height: 300px;    max-width: 300px;    width: 100%;    height: 100%;    margin-top: 10px;        line-height: 10px;    color: white;    }
<div class="flex-container">  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing.svg"></br>thing thing</a>  	</div>  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing.svg"></br>thing/<br>thing</a>  	</div>  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing.svg"></br>thing</a>  	</div>  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing.svg"></br>thing</a>  	</div>  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing.svg"></br>thing</a>  	</div>  	<div class="flex-item">  		<a href="#/thing"><img src="img/thing-thing.svg"></br>thing thing</a>  	</div>  </div>

this wasn't working absence of

-webkit-flex: 1 1 15em; -moz-flex: 1 1 15em; flex: 1 1 15em; 

in .flex-item.

hence why working in chrome, not firefox or safari. chrome gets stuff, suppose.

a great perk solved problem (kind of) images automatically resize themselves, in addition moving. have tweak little more robust enough differences between mobile/web views


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -