I have a container with a set width and height. I have 20 elements inside. I would like to arrange them vertically in columns 4 and it is preferable to have the container scroll when the columns overflow along the x axis.
content 1 content 5 content 9 content 13 content 17
content 2 content 6 content 10 content 14 content 18
content 3 content 7 content 11 content 15 content 19
content 4 content 8 content 12 content 16 content 20
Is there a way to achieve this using only CSS?
EDIT
Any solution should be supported in browsers as old as IE9
jsfiddle
source
share