My code is
<div id="parent">
<div class="produit_sup">
<p>Aubergine</p>
<p>Betterave</p>
<p>Courgette</p>
<p>Oignon</p>
<p>Poireau</p>
<p>Pomme de terre</p>
<p>Tomate</p>
</div>
</div>
<style>
#parent{
display: flex;
}
.produit_sup{
max-height: 100px;
background: #c3c3ff;
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.produit_sup>p{
width: 100px;
text-align: left;
margin: 0 20px 0 0;
}
</style>
I want to save display:flex;
of parent and I my number of <p>
items can be changing on the time
, items will go out of `.produit_sup`. And size of a column is not fixed
– Hugo Levet Jun 02 '21 at 13:53