Answer the question
In order to leave comments, you need to log in
With flex-flow: row wrap and flex: auto, how do I set the width of the last elements in the row like everything else?
There is markup on flexbox for elements:
.flexbox-container {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}
.item {
flex: auto;
-webkit-flex: auto;
width: 100px;
height: 100px;
border: 1px solid #000;
}
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
Answer the question
In order to leave comments, you need to log in
The easiest option
.item {
max-width: 100px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question