Ultimate responsive flex grid

HTML
1
2
<div class="flex flex-wrap">
<div></div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
CSS
1
2
.flex > div {
width: 200px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JAVASCRIPT
1
2
$('.flex div').each(function() {
var color = '#'+Math.floor(Math.random
        ()*16777215).toString(16);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Expand for more options Login