JS Bin
// source https://jsbin.com/kegifu
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.container .box {
background: #acf;
width: 100px;
height: 60px;
margin: 1%;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.container .box {
background: #acf;
width: 100px;
height: 60px;
margin: 1%;
}
</style>
</head>
<body>
<div class="container">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
<script id="jsbin-source-css" type="text/css">.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.container .box {
background: #acf;
width: 100px;
height: 60px;
margin: 1%;
}
</script>
</body>
</html>