ul { width: 100%; display: flex; flex-wrap: wrap;} li { flex: 1; width: 25%; min-width: 25%; max-width: 25%; }