I need To Make The div is The First one appeared in the left, as below photo, note that this div has class eligible and others has class noneligible. note the the parent has display:flex;
i tried to give the target div flex:1;
but not working.
I need To Make The div is The First one appeared in the left, as below photo, note that this div has class eligible and others has class noneligible. note the the parent has display:flex;
i tried to give the target div flex:1;
but not working.
2
Answers
You have give css to parent to flex and child class you have to give them order property as you want.
Try this one, Hope so your requirement will be fulfill from this code.
It can be made with order as in below; Also, if there is only 3 divs (static), you can use flex-direction: row-reverse; for it.
and for the style: