display: flex, inline-flex
flex-direction: row, row-inverse, column, column-inverse
flex-wrap: no-wrap, wrap, wrap-reverse
기본적으로 플렉스 항목들은 주축 방향으로 따라 한줄로 배치됩니다. 하지만 flex-wrap속성하면 브라우저 크기가 작아지면 여러 줄에 걸쳐서 표시합니다.
flex-flow: <플렉스 방향> <플렉스 줄 배치>
<html>
<title>
</title>
<style>
#container {
display: flex;
}
#container div {
width: 100px;
border: 1px solid red;
}
#box1 {
order:2;
}
#box2 {
order:3;
}
#box3 {
order:1;
}
</style>
<body>
<div id="container">
<div id="box1"><h1>1</h1></div>
<div id="box2"><h1>2</h1></div>
<div id="box3"><h1>3</h1></div>
</div>
</body>
</html>
flex: flex-grow flex-shrink flex-basis , auto, initial
justify-content: flex-start, flex-end, center, space-between, space-aroud
align-items : stretch | flex-start | flex-end | center | baseline