.column-flex { display: flex; flex-direction: column; } .row-flex { display: flex; flex-direction: row; } .flex-item-grow { flex: 1 0 auto; } .flex-item-shrink { flex: 0 1 auto; }