Experiencing an issue with the space-evenly
value for justify-content
on Chrome mobile, while it functions correctly on Desktop and Firefox mobile.
A minimal example can be seen here: Example
Having a flex container in a row direction aiming to evenly space elements, as expected with space-evenly
. Despite working on desktop, Chrome mobile (version 59 on Android) aligns elements to the left. See the comparison here: Comparison
center
and space-around
values function properly, but the preference is to utilize space-evenly
or an equivalent (maintaining the flex-wrap: wrap
behavior).
Below is the HTML:
<div class="container">
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
</div>
CSS Code:
.container {
display: flex;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap;
background: lightgrey;
}
.element {
margin: 8px;
width: 42px;
height: 42px;
background: black;
}
Thank you in advance!