JSFiddle - React, Tailwind, and code Playground

HTML

<div id="doc">
    <p id="header">Header</p>

    <div class="products">
        <p class="phones">Child 1</p>
        <p class="computers">Child 2</p>
        <p class="fast-cars">Child 3</p>
    </div>

    <div class="products">
        <p class="phones">Child 1</p>
        <p class="computers">Child 2</p>
        <p class="fast-cars">Child 3</p>
    </div>

    <p id="footer">cf. <a href="http://www.the-haystack.com/2010/01/23/css3-flexbox-part-1/">www.the-haystack.com/2010/01/23/css3-flexbox-part-1/</a></p>
</div>

CSS

body, html {
    width: 100%; height: 100%; padding: 0; margin: 0;
}
#header,
#footer {
    padding: 20px;
    background-color: gray;
    margin: 0;
}
.products {
    background-color: silver;
    width: 350px;
    height: 100px;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    display: -moz-box;
    -moz-box-orient: horizontal;
    display: box;
    box-orient: horizontal;
    margin: 0;
}
.phones {
    background-color: orange;
    padding: 1em;
    margin: 0;
}
.computers {
    background-color: lightgreen;
    padding: 1em;
    margin: 0;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
}
.fast-cars {
    background-color: lightblue;
    padding: 1em;
    margin: 0;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
}