By default you can use the class .row and .col to set flex direction
You can change flexbox justify-content and aling-items with the following classes
<div class="row justify-start" >
...
</div>
<div class="row justify-center" >
...
</div>
<div class="row justify-end" >
...
</div>
<div class="row align-start" >
...
</div>
<div class="row align-center" >
...
</div>
<div class="row align-end" >
...
</div>
You can change flex-wrap property with the following classes:
Class | Porperty Value |
---|---|
.flex-no-wrap | flex-wrap:none; |
.flex-wrap | flex-wrap:wrap; |
.flex-wrap-reverse | flex-wrap:wrap-reverse; |
<div class="row flex-no-wrap ..." >
...
</div>
<div class="row flex-wrap ..." >
...
</div>
<div class="row flex-wrap ..." >
...
</div>
yi
you can
Class | Porperty Value |
---|---|
.flex-s | flex-shrink:1; |
.flex-s-0 | flex-shrink:none; |
.flex-g | flex-grow:1; |
.flex-g-0 | flex-grow:0; |
Adding class flex 1 to a children of a flex element will make then growth same sime;
<div class="row " >
<div class="flex-1 ..."> 1 </div>
<div class="flex-1 ..."> 2 </div>
<div class="flex-1 ..."> 3 </div>
</div>
Adding class flex auto to a children of a flex element will make then growth if its content is bigger ;
<div class="row">
<div class="flex-1 ..."> 1 </div>
<div class="flex-1 ..."> 2 </div>
<div class="flex-1 ..."> 3 </div>
</div>
Adding class flex none to a children of a flex element will make then not to grow or shrink in order to fill its parent
<div class="row">
<div class="flex-1 ..."> 1 </div>
<div class="flex-1 ..."> 2 </div>
<div class="flex-1 ..."> 3 </div>
</div>