I’m building a page with two colums : one and two.
I would like to populate these columns with a limit of 2 items in the first column so the remaining item will fallback to the second column.
I’m trying to avoid being too complicated here and I’m looking for a nice way to do it. Or having the same code for column one and two duplicated…
I first tested with a while.
Thanks,
Well, the div with li inside was a little confusion while trying to make this code an example.
I tried to manage that using css grid too, since it can do it, but not really the way I want it.
The best solution I have found is to get a first ul for one and another for two.
What I would like to avoid is a redundance. (Exactly what the example is showing)