Currently, I am utilizing the flex
property to create uniform columns and vh
to ensure they have the same height. This setup is functioning properly, but within each column, there could be a varying number of items. I am interested in having the elements within each column adjust to an even height based on the number of items present, all handled through CSS.
For example: 1 item = 100% height 2 items = 50% height 3 items = 33.33% height And so on.
While I am aware that achieving this effect via JavaScript is possible, I am eager to explore an automated CSS solution leveraging techniques such as flexbox, grid, or alternative methods.