same height and width for div using flex code example Example: flex all child same width .child { flex: 1; }