In the realm of responsive web design, what methods are suggested to achieve the specified CSS display?
My main requirement is to have a maximum of three columns. The content should be divided evenly among these three columns.
I prefer using SCSS and welcome the use of Flexbox and CSS Grids. I would like to avoid Bootstrap, even though I know it has a grid system.
For screen widths less than 1000px:
A D G
B E H
C F
For screen widths less than 500px:
A E
B F
C G
D H
For screen widths less than 200px:
A
B
C
D
E
F
G
H
Here is a link to a codepen with some initial code. I am struggling to come up with a suitable solution for this layout.
https://codepen.io/basickarl/pen/NjgvNa
I was considering using CSS Grids, but I'm concerned that it may not provide the necessary flexibility as the items in the list will change.