display flex equal width code example Example 1: flex all child same width .child { flex: 1; } Example 2: css flex divide evenly flex: 1 1 0px