Please note I only need to get this working in Chrome for an embedded device I am working on. Also please do not give any float, table, inline-block etc. based solutions - I am only interested in CSS flex answers.
That said, I have markup as follows:
<div class="wrap">
<div class="a">red</div>
<div class="b">blue</div>
<div class="c">green</div>
</div>
And CSS as:
.wrap { display: -webkit-flex; height: 100%; }
.a { -webkit-flex: 1; max-width: 100px; background: red; }
.b { -webkit-flex-flow: row; -webkit-flex-direction: row; -webkit-flex: 1; background: blue; }
.c { -webkit-flex-flow: row; -webkit-flex-direction: row; -webkit-flex: 1; background: green; }
The layout I am trying to achieve is:
______________
|red |blue |
| |_______|
| |green |
| | |
|____|_______|
The red box should have a height of 100% and a max-width of 100px; The height of the blue and green boxes combined should amount to 100%. Can anyone advise me how to achieve this with using -webkit-flex? You can see I have tried playing with flex flow and flex direction to no avail.
I have created a JSBin link with the code: http://jsbin.com/usisic/3/edit
Thanks