I use Flex Box to create a traditional list of floating point elements. I have three elements structured as:
<section>
<div>
item one
</div>
<div>
item two
</div>
<div>
item three
</div>
</section>
with CSS:
section{
display: flex;
flex-wrap: wrap;
}
div{
width: 33%;
min-width: 200px;
border: 1px solid black;
}
In this current format, item threeit will always be the first child to be pressed on a new line if the screen width falls below a threshold value.
Do I need to customize Flex Box anyway to item twoalways be the first?
Jsfiddle
source
share