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