section { display: flex; flex-direction: row; flex: 1; margin: 0 -8px; align-items: center; } section>* { margin: 0 8px; } .divider { width: 2px; margin: 6px 0; background: blue; align-self: stretch; } .item { flex: 1; background: orange; }