I've got an (php) array with, 1, 2, 3, 4, 5 or 6 results. I want to display them as following in the different situations:
1 result:
[result 1]
2 results:
[result 1] [result 2]
3 results:
[result 1] [result 3]
[result 2]
4 results:
[result 1] [result 3]
[result 2] [result 4]
5 results:
[result 1] [result 4]
[result 2] [result 5]
[result 3]
6 results:
[result 1] [result 4]
[result 2] [result 5]
[result 3] [result 6]
It would be nice if I could this with CSS only (and not with tables of course), so the right order is preserved in the source, but the display goes as above. Otherwise I think I need some weird PHP loop to get these results in the right order on my screen. Anybody know how to do this? Thanks in advance!