flexbox same size as first element code example Example: flex all child same width .child { flex: 1; }