Using flexbox here. Is it possible to make the overlapping element full width after it has been pressed without media processes?
See attached plunker: http://plnkr.co/edit/mxACfJ2VR5yNgP9j8WJh?p=preview Resize the preview window to a width of less than 425 pixels. The third element is discarded, and then I want to make it full width. When it is on the same line as the other 2 elements, it should not grow.
css:
.flexContainer { display:flex; flex-wrap:wrap; border: 1px solid; } .img { width:110px; height:110px; background:red; } .flexItem { flex-basis:200px; flex-grow:1; background:#ff1; } .wrapItem { flex-basis:100px; background:#aab; }
HTML:
<div class="flexContainer"> <div class="img">fixed size img here</div> <div class="flexItem">This flexes</div> <div class="wrapItem">This wraps</div> </div>
css flexbox css3
John
source share