I want child div with 100% width.
Is it possible or not ?
html
<div class="main">
<div class="order2">order2</div>
<div class="order1">order1</div>
</div>
css
.main{
display: flex;
}
.order1{
order:1;
width:100%;
}
.order2{
order:2;
width:100%;
}
Add flex-direction: column;
you can adjust the directing of the 'flex' display
http://jsfiddle.net/gobmo8sL/2/
Any reason for using display:flex for the parent div? If you remove that, you are getting a full width child. Also, if you are looking for a listing, go for
structure.